mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1450] Abandon Auto Reconnect #1240
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#1240
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 @DrJaymz on GitHub (Jul 8, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1450
In my application I want the portal to appear until it times out, if the Wi-Fi credential are saved but its unable to reconnect then I want to continue in an offline mode.
The problem is, I can't seem to see how to stop it trying to reconnect forever. It used to work fine, but I have opened a 3 year old project and functionality seems to have moved on somewhat - which is great.
I tried disconnect etc.
Still keep getting
which appears to be from the manager.
@tablatronix commented on GitHub (Jul 8, 2022):
well in wm use setConfigPortalTimeout
@tablatronix commented on GitHub (Jul 8, 2022):
That is the esp library not wm, disable esp autoreconnect
@DrJaymz commented on GitHub (Jul 8, 2022):
The timeout is set. It does timeout. And my mainloop begins, but it keeps trying to reconnect continually according to the debug output.
@tablatronix commented on GitHub (Jul 8, 2022):
Yeah that an ESP thing, ESP.setAutoReconnect(false) or just setMode(WIFI_OFF)
@DrJaymz commented on GitHub (Jul 8, 2022):
its an 8266 does have either of those methods, however it does have WiFi.mode(WIFI_OFF);
so trying that.
Thanks for the help, I couldn't see where those messages are coming from, I searched my code and he WIFI manager code but couldn't get it to stop. The reason it matters is because its a sensor that will normally be on WIFI but if it can't connect then I want the output on serial port - and obviously random messages I don't need!
@DrJaymz commented on GitHub (Jul 8, 2022):
Yes, I think that has got it - working nicely now.
@tablatronix commented on GitHub (Jul 8, 2022):
Those messages are coming from esp debuggingm you have debugging enabled
there is a set auto reconnect, I do not have the exact method name