-->
Page 1 of 1

WIFIMANAGER - GETTING FROM AP MODE INTO STA MODE?

PostPosted: Fri Jul 16, 2021 3:16 am
by DavidMalan
Hi fellows!

Hoping this is the right place to post a question concerning WifiManager.

I searched the whole web and some pages more, but didn't find a clue on how to leave AP mode after the ESP has switched to AP mode when not finding the WLAN the credentials it already knows of (from a privious session in AP mode, when I entered the correct credentials).

The ESP goes into AP mode because the WLAN is switched off.
If WLAN is ON, it connects into STA mode correctly.

To be clear:
ESP knows credentials of the WLAN.
If WLAN is ON, it connects.
If WLAN is OFF, it enters AP mode and rests there forever.
How can I programmatically leave AP mode to enter STA mode, when WLAN is ON again?

Thanks!

Re: WIFIMANAGER - GETTING FROM AP MODE INTO STA MODE?

PostPosted: Sat Jul 17, 2021 12:53 am
by JurajA
how should the code know if you want to configure or not?
exit the WiFiManger configuration page if you boot with WLAN off and don't want to configure.

Re: WIFIMANAGER - GETTING FROM AP MODE INTO STA MODE?

PostPosted: Mon Jul 19, 2021 1:28 pm
by btidey
You can set a timeout for the time it spends in AP mode before quitting.

With this you can program what behaviour you want. E.g. make it alternate between AP mode and STA mode until either a connection is found or it is reconfigured.