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

Access Point not necessary with previous saved credentials #149

Closed
piertoni opened this issue Apr 5, 2016 · 2 comments
Closed

Access Point not necessary with previous saved credentials #149

piertoni opened this issue Apr 5, 2016 · 2 comments

Comments

@piertoni
Copy link

piertoni commented Apr 5, 2016

Hi,
Imagine a router and ESP power down. The router maybe takes a while to span a wi-fi network.
In the meanwhile ESP boots and can't connect, then goes to AP and doesn't connect anymore to router. This is not what I want for an IoT device.
Is possible to simply let ESP trying to connect to wi-fi without AP mode?

@piertoni piertoni changed the title Station mode not necessary with previous saved credentials Access Point not necessary with previous saved credentials Apr 5, 2016
@tzapu
Copy link
Owner

tzapu commented Apr 6, 2016

yes, either use wifiManager.setConfigPortalTimeout(180); so it stays in portal for said timeout, then make it reboot and retry (this is what i use) or just start config portal manually when you actually need it.

too many problems could arise otherwise

@kentaylor
Copy link

kentaylor commented Apr 22, 2016

Do not use the autoconnect functionality. Then it "Is possible to simply let ESP trying to connect to wi-fi without AP mode".

Start configuration mode manually when "you actually need it".

Here is an example that does exactly that https://github.com/kentaylor/WiFiManager/tree/master/examples/ConfigOnSwitch

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

4 participants