diff --git a/Arduino/McLighting/McLighting.ino b/Arduino/McLighting/McLighting.ino index e7af936..757149d 100644 --- a/Arduino/McLighting/McLighting.ino +++ b/Arduino/McLighting/McLighting.ino @@ -217,6 +217,14 @@ void setup() { ESP.restart(); }); + server.on("/reset_wlan", []() { + DBG_OUTPUT_PORT.printf("/reset_wlan:\n"); + server.send(200, "text/plain", "Resetting WLAN and restarting..." ); + WiFiManager wifiManager; + wifiManager.resetSettings(); + ESP.restart(); + }); + // *************************************************************************** // Setup: SPIFFS Webserver handler