8000 Make sure that WiFi is started before trying to erase configuration. · ratthaks/arduino-esp32@7811668 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7811668

Browse files
committed
Make sure that WiFi is started before trying to erase configuration.
Connected to: espressif#400
1 parent 24085a3 commit 7811668

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFi/src/WiFiSTA.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ bool WiFiSTAClass::disconnect(bool wifioff)
260260
*conf.sta.password = 0;
261261

262262
WiFi.getMode();
263+
esp_wifi_start();
263264
esp_wifi_set_config(WIFI_IF_STA, &conf);
264265
ret = esp_wifi_set_config(WIFI_IF_STA, &conf) == ESP_OK;
265266

0 commit comments

Comments
 (0)
0