mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-28 01:25:49 +03:00
[GH-ISSUE #1515] power outage #1293
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#1293
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 @stef-ladefense on GitHub (Oct 28, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1515
a question,
how to handle a power outage and a long reconnection to local wifi modem.
let me explain:
when the electric current returns after a cut, the esp's will start faster than the internet modem.
therefore, they will switch to portal mode after setConnectTimeout(45)and exiting without a connection after a setConfigPortalTimeout(180).
the way i found is to test the output of wifiManager.autoConnect and do an esp.restart to restart the connection, the modem will restart and the esp will connect to it.
is there an internal solution that would automatically restart a connection after the timeout without rebooting?
Thanks a lot
@mkrasselt1 commented on GitHub (Nov 29, 2022):
You could use this to give the device up to 5 min to conenct to the accesspoint on boot and up to 5 reconnects to the same station :)
@Tomerv32 commented on GitHub (Dec 26, 2022):
Hey
same question here, same issue with power outages:
I have some cases where my ESP32 moves to a different place,
and needs to be re-configured to a new WiFi network, even though it already has one saved.
(I can't add a button for reset/portal open etc..)
As I don't want to wait 300*5 seconds until the Portal opens in such a case,
I need a way to try reconnecting while the portal is open.
couldn't find such a thing in the library. any ideas? :)
@stef-ladefense commented on GitHub (Dec 26, 2022):
ok thank
does this mean that it will wait 300s before trying to connect and this 5 times?
over a total duration of 5X300?
@mkrasselt1 commented on GitHub (Feb 16, 2023):
yep thats correct - should give your router plenty time to get back up and running
@mkrasselt1 commented on GitHub (Feb 16, 2023):
If there is no why to trigger such a portal opening in you case, the only option would be to keep it open all the time.
@tablatronix commented on GitHub (Feb 17, 2023):
You have to use the beta version