提交 7811668f 编写于 作者: M me-no-dev

Make sure that WiFi is started before trying to erase configuration.

Connected to: https://github.com/espressif/arduino-esp32/issues/400
上级 24085a3b
......@@ -260,6 +260,7 @@ bool WiFiSTAClass::disconnect(bool wifioff)
*conf.sta.password = 0;
WiFi.getMode();
esp_wifi_start();
esp_wifi_set_config(WIFI_IF_STA, &conf);
ret = esp_wifi_set_config(WIFI_IF_STA, &conf) == ESP_OK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册