BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

ESP8266 running online and offline, also reconnect when wifi or server connection fails

This sketch is based on an example posted by Gunner with some modifications added in place to make it able to reconnect after Wifi or Server connection failures.
It is able to check if it is a Wifi or a server connection issue and recover it when it is possible
The MCU runs the task every second - It turns the builtin led on and off (allways) and post the millis/1000 to blynk server (only when a connection is available).

I hope someone finds it useful.Feel free to contribute!

2 Likes