I have a client application that makes many, many http connections. Works fine except when it doesn't :-)
My code looks something like:
if ( wifi.connect ( ServerName, 80 ) == 1 )
{
// blah, blah, blah...
}
else Serial.println ( "Failed to connect :-(" );
And of course, that's in a function that gets called out of the main loop. Seems like when I see this once, that's game over. That's the only output I see from that point on. And while my code should keep re-attempting to connect to things, after a dozen of so of those attempts, even that stops.
It might initially run for 10 minutes, or half an hour, or two hours. But it does seem to eventually get into that mode.
Is there something I need to do, code-wise, to recover from such a failure?