mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #938] A new parameter to allow multiple attempts to connect before falling back to AP #794
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#794
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 @rharrison on GitHub (Sep 12, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/938
I have an interesting problem where the esp Client fails to get an IP address from the AP. It then configures itself as an AP for configuration. I have added an option to try multiple times before falling back into AP configuration mode. This has fixed my problem as the IP is often given out on the second attempt.
Should I send a pull request to you for the code changes or is this not something you’re interested in ?
@tablatronix commented on GitHub (Sep 12, 2019):
This sounds like the disconnect bug.
You can try disconnecting first then connecting.
@rharrison commented on GitHub (Sep 13, 2019):
Thanks for your help. This might be because I don’t disconnect at the end of my program it just powers off iirc. Let me investigate and come back to you.
@rharrison commented on GitHub (Sep 13, 2019):
Excuse my ignorance here but should we be disconnecting from the WiFi network before we leave. I can not see an obvious way to do do this. I see there is a WiFi.Disconnect() routine but I'm not sure how to call that from WiFiManager. Is it ok just to send the data to the server and then power off? or should i be telling the AP i'm disconnecting before powering off.
@tablatronix commented on GitHub (Sep 13, 2019):
What esp version are you using?
I mean disconnect before connecting
@rharrison commented on GitHub (Sep 13, 2019):
ESP8266 2.5.2
This seems to have solved it :-)
Any idea why we need to do this ?
@rharrison commented on GitHub (Sep 13, 2019):
I'm so pleased you managed to solve this. @tablatronix . It was a real hack I put in to try to connect 3 times :-/