mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1585] Can not reconnect to saved AP after config portal timeout. #1351
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @olonsoft on GitHub (Apr 12, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1585
Basic Infos
Hardware
WiFimanager Branch/Release: Master latest git of 2023-04-12
Esp8266
Hardware: ESP-12e
Espressif 8266 (4.2.0) > NodeMCU 1.0 (ESP-12E Module)
Description
The case is this:
My program connects to WiFi in setup by calling wm.autoConnect(...);
In loop() I check if the WiFi is connected and if not I start the configPortal(...)
While connected, I turn off my AP so the ESP disconnects and my code starts the configPortal.
A few seconds later, I turn on my AP and wait for the captive portal to timeout (I have set it to 180 secs).
According to the WiFiManager code, when the configPortal ends, it should reconnect to the previous wifi. But instead, I see in the log "WL_STATION_WRONG_PASSWORD" and don't know where it comes from.
So my code detects that the wifi is not connected and starts the configPortal again. And this loop continues forever.
my code is this: