tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal

Home Page:http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access Point not necessary with previous saved credentials

piertoni opened this issue · comments

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?

commented

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

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