I have a problem with the ESP8266WiFi library. client connected () remains true, if the connection to the server is broken without the server has closed (like a power failure on the server). Is it a bug? How do I know if the client-side connection to the server is active?
if(!client.connected())
{
client = server.available();
return;
}
else
{
digitalWrite(LED_BUILTIN, LOW);
delay(50);
digitalWrite(LED_BUILTIN, HIGH);
delay(50);
}
Thanks for your valuable help.