Closed specau closed 4 years ago
Welcome to HTTPSRedirect! Please provide enough info to debug the issue.
this issue is due to memory management. The library relies on the code cleaning up used memory every time, method termination doesn't seem to clean up.
Added this to the code, just before close of method.
// Clean up
delete client;
client = nullptr;
Using library Version 2.1. If the POST method fails once, then the library stops working for all further attempts, till the ESP8266 is reset.
Here's an extract of the code being used:
In the Arduino loop, there is a call to the sensors function (not shown here) every 5 mins. After obtaining the values, the function above is called. This works fine for sometimes a few hours and sometimes it starts failing within an hour. Once it fails, it never recovers, I've tried waiting for over 2 hours to monitor it.
Details of how the failure looks like: The function works, up to a point where there is a failure in the line
Logs show:
Once this failure occurs in any loop, in the execution of future loop, the function starts failing at this line
Logs start showing:
it never reaches the POST call and fails in the connect itself.
Is there something in the library code which has a cache and once it fails, it's unable to recover ?