Hi,
I have executed 20 HTTP POST continuously by modifying the httpget example code provided by SDK version 6.10.
for(i =0; i <20; i++)
{
UART_PRINT("\n\r\n\r******Executing %d ********\n\r\n\r", i);
httpPost();
sleep(2);
}
Below is the sequence of the httppost function. It is working fine for the first 16 requests, but it fails to make a connection after that because of the heap memory overflow.
HTTPClient_create
HTTPClient_setHeader
HTTPClient_connect
HTTPClient_sendRequest
HTTPClient_readResponseBody
HTTPClient_disconnect
HTTPClient_destroy
Below is the increment I have seen from ROV. Heap memory usage increases each request.
Please help me to fix this issue.
Regards,
Sundar