Closed
Description
Dear team, I have an issue with respect to getString() method. We are using ESP8266 where internet connection is little poor. Hence, after sending the HTTP POST request and when trying to read the response from the server, the ESP sometimes hangs and never comes out of it until hard reset is performed manually. This happens randomly. Kindly help me in resolving this. I am attaching the code below:
int httpCode = http.POST(postData);
if (httpCode == 200 && http.getSize() > 0) {
String payload = http.getString(); //Get the response payload
}
Metadata
Metadata
Assignees
Labels
No labels