ESP-MQTT-JSON-Digital-LEDs
ESP-MQTT-JSON-Digital-LEDs copied to clipboard
Animation Freezes upon internet/wifi disconnection
trafficstars
My problem is when ever the wifi/internet disconnects the animation freezes only to resume after the wifi/internet is back.
In India where data disconnection is very frequent with all ISPs it is a big problem, is there any way out of this?
@insane2subro You can add a conditional in the main loop function to try and reconnect to WiFi.
This is what i've done and it works fine.
if (WiFi.status() != WL_CONNECTED) {
delay(1);
Serial.print("WIFI Disconnected. Attempting reconnection.");
setup_wifi();
return;
}