-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Change disconnect function #466
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
Conversation
Current implementation does not disconnect the WiFi. Use of `esp_wifi_disconnect()` does.
have you tried calling that function first? void setup(){
//....
WiFi.disconnect(true);
WiFi.connect("ssid", "pass");
//....
} It should wipe the settings as well |
I was testing the disconnect directly. Ie configure the ESP to join an AP, then 10 seconds later call WiFi.disconnect(). It returned true, but nothing changed and the ESP still had an IP and was connected. |
you removed some lines that had a function there ;) |
Ah, is disconnect meant to wipe the settings too? |
what's up with this? |
put back the clear ssid + password remove the duplicate `esp_wifi_set_config(WIFI_IF_STA, &conf);`
holiday + forgot. sorry:) |
great :) |
* Change disconnect function Current implementation does not disconnect the WiFi. Use of `esp_wifi_disconnect()` does. * Update WiFiSTA.cpp put back the clear ssid + password remove the duplicate `esp_wifi_set_config(WIFI_IF_STA, &conf);`
Current implementation does not disconnect the WiFi. Use of
esp_wifi_disconnect()
does.