### Basic Infos #### Hardware Hardware: ESP-12e Core Version: 2.3.0 ### Description I need to clear the WPS configuration directly by code. I Tried to do: ESP.eraseConfig(); ESP.restart(); ### Sketch ```cpp #include <Arduino.h> #include <ESP8266WiFi.h> void setup() { Serial.begin(74880); } void loop() { if (Serial.available() > 0) { String text = Serial.readString(); text.trim(); Serial.print("Command: "); Serial.println(text); if (text == "CLEAR") { ESP.eraseConfig(); ESP.restart(); } else if (text == "WPS") { startWPSPBC(); } } } ```