mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #216] AP mode stuck on after STA re-connected #175
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#175
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 @mtnbrit on GitHub (Aug 13, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/216
Hi, Im seeing my devices are all showing their config APs after they lost connection to their normal AP today. So they lost connection to the stored AP in STA mode, after the timeout, the config AP is started, then the normal AP comes back and they re-connect in STA mode, but in fact its in AP+STA mode as I still see the APs broadcasting in my wifi networks.
Even if they are in config mode, clearly if they are able to reconnect to the stored ssid, then config AP mode should be canceled and just go back to regular STA mode, no?
@tzapu commented on GitHub (Aug 15, 2016):
hi,
that s what should happen, when connected it goes back to STA mode.
do you still see the ap’s after some time? some devices just seem to cache the list of avaiable APs for a while…
cheers
@mtnbrit commented on GitHub (Aug 15, 2016):
Definitely it stays in AP+STA mode, still see the ssid permanently.
Sent from my iPhone6
@kentaylor commented on GitHub (Sep 25, 2016):
Your issue reads to me as:-
If so, that is how WiFiManager is programmed to behave. It will connect back to the network because it is simultaneously in AP and STA mode as configured at
github.com/tzapu/WiFiManager@028bdeeb17/WiFiManager.cpp (L154)but remains in config mode. That is an undesirable situation in my view. You can put a timeout on config mode so it will drop out of config mode after a while which may work for you.You would like it to go out of AP mode when it successfully reconnected and it could be programmed that way but there is problems with that logic. It would then become impossible to change networks when a network to which it can connect is visible and many applications should still function even without a WiFi network so for those applications you don't want it to jump into config mode every time the WiFi network goes away.
I don't think there is any way to automatically know when it should go into config mode, only a human has the knowledge of whether a new network is required or it is better to wait for the network to come back. Therefore you require a human to initiate config mode and here is an example that works that way - https://github.com/kentaylor/WiFiManager/tree/master/examples/ConfigOnSwitch .