Skip to content

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

Closed
bmitov opened this issue May 4, 2017 · 5 comments
Closed

WiFiSTAClass::setAutoReconnect from WiFiSTA.h is not implemented #353

bmitov opened this issue May 4, 2017 · 5 comments

Comments

@bmitov
Copy link

bmitov commented May 4, 2017

WiFiSTAClass::setAutoReconnect method from WiFiSTA.h file is declared but not implemented in the .cpp file

@me-no-dev
Copy link
Member

Implemented :) sort of...

@St3venAU
Copy link

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.

@ogiewon
Copy link

ogiewon commented Sep 6, 2017

@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!

@nenadalm
Copy link

@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.

@Bmooij
Copy link
Contributor

Bmooij commented Feb 12, 2019

@nenadalm It is used in WiFiGeneric.cpp

blue-2357 pushed a commit to blue-2357/arduino-esp32 that referenced this issue Jul 17, 2024
dash0820 added a commit to dash0820/arduino-esp32-stripped that referenced this issue Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants