tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.53k stars 1.96k forks source link

get back to wifi setup when wifi connection get lost #783

Open mc9625 opened 5 years ago

mc9625 commented 5 years ago

I'm working on a battery powered device. I would like to be able to carry this object around and try to connect to a new hotspot. I can't add any hw button to it, so this reconnection should be managed automatically. It should be something simple: instead that "simply" get back to AP mode if connection is lost, it should get back to Wifi Manager setup. Is this possible?

tablatronix commented 5 years ago

Sure use the on demand example and use esp events to detect lost connections , you will want to add a delay to make sure its not a hiccup though