Closed
Description
WiFi.disconnect(true) does not erase stored SSID and password.
The connection should fail because WiFi.disconnect(true) should erase the stored SSID and password. But the connection succeeds. Two error messages also appear. See the end.
#include <WiFi.h>
void setup() {
Serial.begin(115200);
Serial.println();
WiFi.disconnect(true);
WiFi.begin();
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print('.');
}
Serial.println();
Serial.println("Connected");
}
void loop() {
}
Console output.
E (289) wifi: esp_wifi_set_config 977 wifi is not init
E (289) wifi: esp_wifi_set_config 977 wifi is not init
..
Connected
Metadata
Metadata
Assignees
Labels
No labels