-
Notifications
You must be signed in to change notification settings - Fork 7.6k
WiFiSTAClass::setAutoReconnect from WiFiSTA.h is not implemented #353
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
Comments
Implemented :) sort of... |
I thought I'd give this a test, and so far it doesn't look like it does an automatic reconnect. This is my test code: https://gist.github.com/St3venAU/8367e1e8b0a267ae558326aaf9888c94 When I leave the manual reconnect code commented out, and I turn off the wifi on my router, the status goes to CONNECTION_LOST and stays that way even after turning the wifi back on. With the manual reconnect code un-commented, the status changes to CONNECTION_LOST, then NO_SSID_AVAIL, and then finally CONNECTED again once the wifi signal is returned. |
@me-no-dev I have noticed the exact same thing. The ESP32 does not seem to implement any sort of automatic WiFi reconnect logic. The ESP8266 does this very well, behind the scenes of the Arduino developer. I would really like to see this implemented. For now, I have to detect the loss of connection and then attempt the WiFi.reconnect() command like @St3venAU (although I trap it in a WiFi Event handler.) Has there been any progress on this issue since May? Hoping I am just missing something obvious! ;) Thanks! |
@me-no-dev I don't get it. How is it implemented? It doesn't seems to work. When I checked the code, it's just about setting the flag: b6e83fa but nothing seems to be using the flag. Yet the commit claims that the behaviour is implemented. Or maybe I misunderstood something. Other issue related to this is also closed: #653. |
@nenadalm It is used in WiFiGeneric.cpp |
This needs proper testing! Fixes: espressif/arduino-esp32#353
This needs proper testing! Fixes: espressif/arduino-esp32#353
WiFiSTAClass::setAutoReconnect method from WiFiSTA.h file is declared but not implemented in the .cpp file
The text was updated successfully, but these errors were encountered: