[GH-ISSUE #478] Trouble with the captive portal if there is wifi credentials stored #400

Closed
opened 2026-02-28 01:25:08 +03:00 by kerem · 7 comments
Owner

Originally created by @eirikso on GitHub (Jan 4, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/478

This is a rather strange problem that I have managed to reproduce several times:

When connecting for the first time the portal pops up perfectly well. Fast and responsive. I choose a network and enter the password. The device restarts and connects to the wlan I entered.

Then I turn off that wlan. And reset the device. Because it can not find the wlan anymore it starts the config portal. But this time it is slow. It fails to load the buttons. The connection fails completely etc.

No matter how many times I restart etc the portal is slow and unstable.

So I upload a debug code that deletes the wifi credentials. Then upload my regular code again. And voila: the portal is fast and responsive. After testing this several times I added a WiFi.disconnect(true); inside WiFiManager.cpp. In the start of WiFiManager::setupConfigPortal(). So that the credentials is deleted if the device enters config mode.

screenshot 2018-01-04 23 02 09

Now it works every time.

I have tested on a WeMos D1 Mini and a WEMOS TTGO ESP8266. Actually I had the same kind of problem when testing the WiFiManager-port to ESP32 as well.

Anyone else that have this problem?

Originally created by @eirikso on GitHub (Jan 4, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/478 This is a rather strange problem that I have managed to reproduce several times: When connecting for the first time the portal pops up perfectly well. Fast and responsive. I choose a network and enter the password. The device restarts and connects to the wlan I entered. Then I turn off that wlan. And reset the device. Because it can not find the wlan anymore it starts the config portal. But this time it is slow. It fails to load the buttons. The connection fails completely etc. No matter how many times I restart etc the portal is slow and unstable. So I upload a debug code that deletes the wifi credentials. Then upload my regular code again. And voila: the portal is fast and responsive. After testing this several times I added a WiFi.disconnect(true); inside WiFiManager.cpp. In the start of WiFiManager::setupConfigPortal(). So that the credentials is deleted if the device enters config mode. <img width="567" alt="screenshot 2018-01-04 23 02 09" src="https://user-images.githubusercontent.com/2481780/34586489-781a79ec-f1a4-11e7-8db9-098b764ff61a.png"> Now it works every time. I have tested on a WeMos D1 Mini and a WEMOS TTGO ESP8266. Actually I had the same kind of problem when testing the WiFiManager-port to ESP32 as well. Anyone else that have this problem?
kerem closed this issue 2026-02-28 01:25:08 +03:00
Author
Owner

@ldab commented on GitHub (Jan 4, 2018):

It happened to me as well, I'll try that and see if it helps.

<!-- gh-comment-id:355415859 --> @ldab commented on GitHub (Jan 4, 2018): It happened to me as well, I'll try that and see if it helps.
Author
Owner

@tablatronix commented on GitHub (Jan 4, 2018):

Known issue, dup

<!-- gh-comment-id:355425366 --> @tablatronix commented on GitHub (Jan 4, 2018): Known issue, dup
Author
Owner

@eirikso commented on GitHub (Jan 5, 2018):

Thank you. So it is not that strange and I am not alone...

<!-- gh-comment-id:355434823 --> @eirikso commented on GitHub (Jan 5, 2018): Thank you. So it is not that strange and I am not alone...
Author
Owner

@srrsparky commented on GitHub (May 10, 2018):

@tablatronix
I am having this same issue. Is there a known issue number for this? I had a look through the open issues, but couldn't spot it.

<!-- gh-comment-id:387975871 --> @srrsparky commented on GitHub (May 10, 2018): @tablatronix I am having this same issue. Is there a known issue number for this? I had a look through the open issues, but couldn't spot it.
Author
Owner

@tablatronix commented on GitHub (May 13, 2018):

Hotfixes branch development branch

<!-- gh-comment-id:388646070 --> @tablatronix commented on GitHub (May 13, 2018): Hotfixes branch development branch
Author
Owner

@srrsparky commented on GitHub (May 16, 2018):

Thanks :)

<!-- gh-comment-id:389392683 --> @srrsparky commented on GitHub (May 16, 2018): Thanks :)
Author
Owner

@tablatronix commented on GitHub (May 16, 2018):

The issue is ap wont start or something cant find #

<!-- gh-comment-id:389492865 --> @tablatronix commented on GitHub (May 16, 2018): The issue is ap wont start or something cant find #
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#400
No description provided.