mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1386] Issue when Scan is cached xxxx ms ago #1186
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#1186
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 @jonathanvanpeteghem on GitHub (Apr 6, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1386
First of all a big thanks to Tzapu and of course Tablatronix for doing such a great job! Special thanks to Tablatronix for maintaining this library and make it into something that actually works and is stable. In the last year(s) I saw this lib evolving from something buggy to something that is now actually usable. The problem I have is a minor problem, and is only something you will get in a very specific case.
Basic Infos
Hardware
WiFimanager Branch/Release: Master : latest version to date => v2.0.10-beta
Hardware ESP32: tested both Wrover and Wroom
Description
The basic problem can be replicated by using the on demand config portal example:
When initializing the wifimanager with => WiFiManager wm; as a global object , and when the button is pushed, it is possible to have a problem. The first time the button is pushed, all is ok. The wifinetworks are found. We can select ssid and set password.
Then we save, and the ESP32 connects to the network.
When pushing the button a second time, to go to the config portal, within 60 seconds. => The wifimanger code detects that the networks have been scanned once before (debug : wm:[2] Scan is cached xxxx ms ago)=> no need to scan again => but after that only empty SSID's are given. (in debug you see multiple : wm:[2] DUP AP: )
Note that you can only replicate this: when you move the initialisation of the wm object from local (in the loop where the button is pressed) to global.
In other words it will only happen when the wm object is not trown away after the button is pushed and the wifi is actually connected.
And you need to reconnect withing 60 seconds (wich is obvious and can be found in the wifimanager code : 60000 ms)
Settings in IDE
Module: It will happen with whatever module.
Additional libraries: NONE
Sketch
Debug Messages
@tablatronix commented on GitHub (Apr 6, 2022):
hmm, good find, ill test this
@tablatronix commented on GitHub (Apr 7, 2022):
changed this
590e212ddbwill be a better fix