PersWiFiManager
PersWiFiManager copied to clipboard
how to add delay to setup page ?
1.can the setup page trigger a reboot if there is no activity for 3-5 minutes for User.
or
- Esp goes into Ap mode if the previously stored wifi is not available but can it make a retry to connect in Ap mode if the previous wifi is now available?
For 1 I would suggest you take a look at the non-blocking option. This way you can continue to run your main program while the wifi manager is running, and from there you can implement your own function to reboot after 5 minutes, etc.
We can also add an GET request via XML HTTP Request method to the /wifi/rst path.
By adding a timer to this it would be fired once the 5 minutes time out is done.
Else you can keep the handle of this timer and then disable it when some other action is performed by the user. All of it can be done in your index.htm page via javascript.