mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #92] setTimeout not work properly #69
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#69
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 @chuxuanhy on GitHub (Feb 4, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/92
Hello,
I am using ESP12E with version 2.1. rc2 and wifimanager 0.9.
I set timeout to 180 seconds. Correct uid and password was saved. Wifi signal was also pretty good (above 80%). The ESP12E gave up quickly to try to connect to the Internet (about 3-4 seconds not as long as the timeout was set) at power on, then the config portal displayed in the wifi list. It was also randomly to make successful or fail connection at the time of powering on. I used AutoConnect, please check this!
@tzapu commented on GitHub (Feb 5, 2016):
hi, as it is, the timeout is from the moment wifimanager is intialised, so it would be 180 seconds from the moment you booted pretty much.
i am reconsidering this
cheers
@chuxuanhy commented on GitHub (Feb 6, 2016):
There must be an issue, I also tried increasing the timeout (to hour) but it helped nothing. ESP12E did not try to reconnect to the internet. It just gave up and started the config portal.
I ran the OnDemandConfigPortal example, gave corrent credentials, had good wifi signal, but could not connect to the Internet. Please recheck the sketch!
@tzapu commented on GitHub (Feb 7, 2016):
hi, you may be misunderstanding the timeout parameter.
what it is is a time it waits in the config portal, not how long it tries to connect.
when timeout is reached, WiFiManager terminates itself and returns control to your sketch.
@chuxuanhy commented on GitHub (Feb 7, 2016):
Oh, I misunderstood the timeout parameter completely! May you help me to modify the sketch to make it try to reconnect in an interval of time? The issue is that it randomly failed to connect to the internet at the time of powering on. Please help me!
@tzapu commented on GitHub (Feb 8, 2016):
hi, try the example AutoConnectWithTimeout.
If it doesn t manage to connect in 3 minutes, it will reset the module and try again.
Will that do it for you?