-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delay to connect with wifi #41
Comments
There is a deliberate delay if there is a failure to connect to the WiFi. See the code in WiFiSettingsService.cpp to see how this works. The delay is fixed to 60 seconds. The delay is required to prevent the device continually channel switching when in auto-reconnect mode - this causes the access point stability issues. There might be an improved solution to this with a back-off retry approach which would allow for more frequent retries without crippling the access point. I'll look at implementing this soon. |
Is there any problem set ap provision mode to never? When I setted to
'never' my wifi connected instantly.
Em sáb, 6 de jul de 2019 03:35, rjwats <notifications@github.com> escreveu:
… There is a deliberate delay if there is a failure to connect to the WiFi.
See the code in WiFiSettingsService.cpp to see how this works. The delay is
fixed to 60 seconds.
The delay is required to prevent the device continually channel switching
when in auto-reconnect mode - this causes the access point stability issues.
There might be an improved solution to this with a back-off retry approach
<https://en.wikipedia.org/wiki/Exponential_backoff> which would allow for
more frequent retries without crippling the access point.
I'll look at implementing this soon.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#41?email_source=notifications&email_token=AABMMVVAG5RJ5CRSV7C2BB3P6A4KXA5CNFSM4H6QNTSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZKTTJA#issuecomment-508901796>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABMMVU6ANJ5JGPVYIFHTT3P6A4KXANCNFSM4H6QNTSA>
.
|
Setting the access point provision mode to "never" will prevent the access point from coming up in the event of WiFi connection failure. Disable it if you like, but you won't be able to re-configure the device if you change your WiFi password (without re-flashing via serial). The back-off retry approach might give you better luck. I've not had any issues with connecting to WiFi first time personally so this issue I suspect it's related to WiFi channel switching. I'm planning on implementing the exponential back-off retry approach, which might help in your situation. |
Hello!
After updating my project with your master, I realized that esp is taking a few minutes to connect to wifi. Did you notice that too?
The text was updated successfully, but these errors were encountered: