PersWiFiManager icon indicating copy to clipboard operation
PersWiFiManager copied to clipboard

how to add delay to setup page ?

Open sunilsud opened this issue 7 years ago • 2 comments

1.can the setup page trigger a reboot if there is no activity for 3-5 minutes for User.

or

  1. 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?

sunilsud avatar Jan 21 '18 04:01 sunilsud

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.

r-downing avatar Mar 13 '18 03:03 r-downing

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.

boseji avatar Jun 18 '18 09:06 boseji