Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add delay to setup page ? #6

Open
sunilsud opened this issue Jan 21, 2018 · 2 comments
Open

how to add delay to setup page ? #6

sunilsud opened this issue Jan 21, 2018 · 2 comments

Comments

@sunilsud
Copy link

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?
@r-downing
Copy link
Owner

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.

@boseji
Copy link
Contributor

boseji commented Jun 18, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants