[GH-ISSUE #739] Getting stuck in AP mode with unreliable WiFi connections #616

Open
opened 2026-02-28 01:26:14 +03:00 by kerem · 8 comments
Owner

Originally created by @towboogie on GitHub (Sep 22, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/739

Hi,

I have a V2 nodemcu that does a Get request to a server to read values every 5 minutes.

I am using wifiManager 0.1.4.0 to establish the WiFi connection every 5 minutes.

The WiFi at devices location is a little bit unreliable, so when the wifi is down, the esp will create a AP/ captive portal and will no longer try to see the saved wifi network.

Is there a work around for this situation? I have tried wifiManager.setConfigPortalTimeout(180); but this just restarts the captive portal instead of checking for the existing wifi network

Serial.begin(115200); WiFiManager wifiManager; wifiManager.setConfigPortalTimeout(30); wifiManager.autoConnect("Du YVest"); Serial.begin(115200); WiFiManager wifiManager; wifiManager.setConfigPortalTimeout(30); wifiManager.autoConnect("Autoconnect");
thanks

Mark

Originally created by @towboogie on GitHub (Sep 22, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/739 Hi, I have a V2 nodemcu that does a Get request to a server to read values every 5 minutes. I am using wifiManager 0.1.4.0 to establish the WiFi connection every 5 minutes. The WiFi at devices location is a little bit unreliable, so when the wifi is down, the esp will create a AP/ captive portal and will no longer try to see the saved wifi network. Is there a work around for this situation? I have tried wifiManager.setConfigPortalTimeout(180); but this just restarts the captive portal instead of checking for the existing wifi network ` Serial.begin(115200); WiFiManager wifiManager; wifiManager.setConfigPortalTimeout(30); wifiManager.autoConnect("Du YVest"); Serial.begin(115200); WiFiManager wifiManager; wifiManager.setConfigPortalTimeout(30); wifiManager.autoConnect("Autoconnect"); ` thanks Mark
Author
Owner

@Van4ik commented on GitHub (Oct 1, 2018):

I have a same question. How i can disable a AP, when i configured settings in station mode?

<!-- gh-comment-id:425940787 --> @Van4ik commented on GitHub (Oct 1, 2018): I have a same question. How i can disable a AP, when i configured settings in station mode?
Author
Owner

@ubergeekseven commented on GitHub (Nov 28, 2018):

Me too, having the same problem on all the devices with WiFi manager.

<!-- gh-comment-id:442420677 --> @ubergeekseven commented on GitHub (Nov 28, 2018): Me too, having the same problem on all the devices with WiFi manager.
Author
Owner

@tablatronix commented on GitHub (Nov 28, 2018):

No idea what your code does, do it in your code.
Or dont call autoconnect

<!-- gh-comment-id:442442562 --> @tablatronix commented on GitHub (Nov 28, 2018): No idea what your code does, do it in your code. Or dont call autoconnect
Author
Owner

@Swiftnesses commented on GitHub (Dec 9, 2018):

I also face this issue, I assume the timeout would recheck the saved network before starting :-(

<!-- gh-comment-id:445566096 --> @Swiftnesses commented on GitHub (Dec 9, 2018): I also face this issue, I assume the timeout would recheck the saved network before starting :-(
Author
Owner

@salvq commented on GitHub (Sep 20, 2019):

I would also very appreciate function that wifimanager in parallel keep checking for known AP credentails (in case router gets powerred off / restarted / firmware upgrade etc.) .

When no visible known network, you would end up having portal (AP mode) to enter new credential until the known network is visible, then board returns to client mode.

Is there any was to make this or workaround in sketch ?

Thanks

<!-- gh-comment-id:533666138 --> @salvq commented on GitHub (Sep 20, 2019): I would also very appreciate function that wifimanager in parallel keep checking for known AP credentails (in case router gets powerred off / restarted / firmware upgrade etc.) . When no visible known network, you would end up having portal (AP mode) to enter new credential until the known network is visible, then board returns to client mode. Is there any was to make this or workaround in sketch ? Thanks
Author
Owner

@tablatronix commented on GitHub (Sep 20, 2019):

esp already does this..

<!-- gh-comment-id:533721428 --> @tablatronix commented on GitHub (Sep 20, 2019): esp already does this..
Author
Owner

@Swiftnesses commented on GitHub (Sep 21, 2019):

esp already does this..

The ESP does, yes, but with regards Wifi Manager, it doesn't work ideally when used with unstable connection (as per the issue).

<!-- gh-comment-id:533772808 --> @Swiftnesses commented on GitHub (Sep 21, 2019): > esp already does this.. The ESP does, yes, but with regards Wifi Manager, it doesn't work ideally when used with unstable connection (as per the issue).
Author
Owner

@tablatronix commented on GitHub (Sep 21, 2019):

You can use ondemand non blocking configportal and start and stop it yourself..

Most of this can be done in user code now in development branch

<!-- gh-comment-id:533800450 --> @tablatronix commented on GitHub (Sep 21, 2019): You can use ondemand non blocking configportal and start and stop it yourself.. Most of this can be done in user code now in development branch
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#616
No description provided.