[GH-ISSUE #35] Failed connect to new AP after receiving Wi-Fi credentials #30

Closed
opened 2026-02-28 01:22:58 +03:00 by kerem · 9 comments
Owner

Originally created by @uetchy on GitHub (Dec 26, 2015).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/35

Failed attempt to connect to new AP after receiving user input Wi-Fi credentials.

*WM: Handle root
*WM: Request redirected to captive portal
*WM: WiFi save
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
*WM: Connection result: 
*WM: 4
*WM: Failed to connect.

After I reset the Arduino board, WM seems loading credentials properly.

Originally created by @uetchy on GitHub (Dec 26, 2015). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/35 Failed attempt to connect to new AP after receiving user input Wi-Fi credentials. ``` console *WM: Handle root *WM: Request redirected to captive portal *WM: WiFi save *WM: Sent wifi save page *WM: Connecting to new AP *WM: Connecting as wifi client... *WM: Connection result: *WM: 4 *WM: Failed to connect. ``` After I reset the Arduino board, WM seems loading credentials properly.
kerem closed this issue 2026-02-28 01:22:58 +03:00
Author
Owner

@tzapu commented on GitHub (Dec 27, 2015):

there might currently be some issues with the esp8266 package and weird behaviour of wifi connecting, maybe this is what affects you as well.
i ll think of re-adding an optional reset to the flow, see if it makes things better

<!-- gh-comment-id:167390680 --> @tzapu commented on GitHub (Dec 27, 2015): there might currently be some issues with the esp8266 package and weird behaviour of wifi connecting, maybe this is what affects you as well. i ll think of re-adding an optional reset to the flow, see if it makes things better
Author
Owner

@tzapu commented on GitHub (Dec 28, 2015):

any chance you could try getting the github release of the esp8266 arduino package and try flashing with that?

<!-- gh-comment-id:167497117 --> @tzapu commented on GitHub (Dec 28, 2015): any chance you could try getting the github release of the esp8266 arduino package and try flashing with that?
Author
Owner

@tzapu commented on GitHub (Jan 4, 2016):

using some new changes in the latest Github head of the esp package, i could add an optional reset after connecting to troubleshoot/fix cases like this.
the downside is that it would mean anyone that wants to use the library would need to be on the latest github release, rather than the current stable release...

<!-- gh-comment-id:168672316 --> @tzapu commented on GitHub (Jan 4, 2016): using some new changes in the latest Github head of the esp package, i could add an optional reset after connecting to troubleshoot/fix cases like this. the downside is that it would mean anyone that wants to use the library would need to be on the latest github release, rather than the current stable release...
Author
Owner

@uetchy commented on GitHub (Jan 6, 2016):

Thanks.
After pulling latest HEAD of ESP8266 and WiFiManager, this issue seems be fixed.

*WM: AutoConnect
*WM: Reading SSID
*WM: SSID: 
*WM: [omitted]
*WM: Reading Password
*WM: Password: [omitted]
*WM: Connecting as wifi client...

However, WM is stuck in WiFiManager::connectWifi...

<!-- gh-comment-id:169255937 --> @uetchy commented on GitHub (Jan 6, 2016): Thanks. After pulling latest HEAD of ESP8266 and WiFiManager, this issue seems be fixed. ``` console *WM: AutoConnect *WM: Reading SSID *WM: SSID: *WM: [omitted] *WM: Reading Password *WM: Password: [omitted] *WM: Connecting as wifi client... ``` However, WM is stuck in `WiFiManager::connectWifi`...
Author
Owner

@tzapu commented on GitHub (Jan 6, 2016):

do you happen to have another ESP8266 module you could try ? or with a better power source?

<!-- gh-comment-id:169260013 --> @tzapu commented on GitHub (Jan 6, 2016): do you happen to have another ESP8266 module you could try ? or with a better power source?
Author
Owner

@uetchy commented on GitHub (Jan 10, 2016):

I'm using USB powered ESP-WROOM-02 development board.
I figured out this is some problem of WiFi.begin. Anyway, this is not related to WiFiManager so you can close the issue.

<!-- gh-comment-id:170316673 --> @uetchy commented on GitHub (Jan 10, 2016): I'm using USB powered ESP-WROOM-02 development board. I figured out this is some problem of `WiFi.begin`. Anyway, this is not related to WiFiManager so you can close the issue.
Author
Owner

@tzapu commented on GitHub (Jan 11, 2016):

cheers
i d like to mention there are a lot of wifi changes and fixes in the latest github arduino esp8266 core

<!-- gh-comment-id:170451042 --> @tzapu commented on GitHub (Jan 11, 2016): cheers i d like to mention there are a lot of wifi changes and fixes in the latest github arduino esp8266 core
Author
Owner

@tzapu commented on GitHub (Jan 11, 2016):

btw, you should try again with the latest github based on sdk 1.5.1
it solved quite a few really random wifi problems...

<!-- gh-comment-id:170532541 --> @tzapu commented on GitHub (Jan 11, 2016): btw, you should try again with the latest github based on sdk 1.5.1 it solved quite a few really random wifi problems...
Author
Owner

@tzapu commented on GitHub (Jan 14, 2016):

@uetchy i've noticed the same behaviour as you mentioned above with a trendnet router
maybe it helps you in anyway

<!-- gh-comment-id:171691557 --> @tzapu commented on GitHub (Jan 14, 2016): @uetchy i've noticed the same behaviour as you mentioned above with a trendnet router maybe it helps you in anyway
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#30
No description provided.