[GH-ISSUE #873] Use WiFiManager only on boot #738

Open
opened 2026-02-28 01:26:50 +03:00 by kerem · 1 comment
Owner

Originally created by @array81 on GitHub (Apr 27, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/873

I'm using WiFiManager on my esp8266 project however I have a problem with it.
On first run WiFiManager start and allow to select WIFI and set password by AP mode then my code run, however if there a wifi disconnection and the reconnect fails (for some reason) the WifiManager restart the AP to select the new WIFI and my code is stopped.
I want avoid it. I need of WiFiManager only on first boot after a reset, then I need select the WIFI and set password by AP after this, if there a wifi disconnection, I want retry the connect (with last WIFI and password) until the connection is not established.

Is it possible?
Is it possible use WiFiManager only for first connection after a reset?

Originally created by @array81 on GitHub (Apr 27, 2019). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/873 I'm using WiFiManager on my esp8266 project however I have a problem with it. On first run WiFiManager start and allow to select WIFI and set password by AP mode then my code run, however if there a wifi disconnection and the reconnect fails (for some reason) the WifiManager restart the AP to select the new WIFI and my code is stopped. I want avoid it. I need of WiFiManager only on first boot after a reset, then I need select the WIFI and set password by AP after this, if there a wifi disconnection, I want retry the connect (with last WIFI and password) until the connection is not established. Is it possible? Is it possible use WiFiManager only for first connection after a reset?
Author
Owner

@World525 commented on GitHub (Apr 27, 2019):

If it tried to reconnect then it means it can't connect to the WiFi. It went back to AP mode because it failed to reconnect. Try editing the cpp file to change the code if you want. I am not an expert but then I hope this helped you :)

<!-- gh-comment-id:487271798 --> @World525 commented on GitHub (Apr 27, 2019): If it tried to reconnect then it means it can't connect to the WiFi. It went back to AP mode because it failed to reconnect. Try editing the cpp file to change the code if you want. I am not an expert but then I hope this helped you :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#738
No description provided.