Last active
March 12, 2018 15:34
-
-
Save ThomasStuetz/97a14526c1c4a937a29522cb1a31eb70 to your computer and use it in GitHub Desktop.
handleResetEspRequest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void handleResetEspRequest() { | |
//const char* response = "Formating the FlashFileSystem<br>Wifi-Connection reset settings, reboot ESP"; | |
//HttpServer.send( 200, "text/html", response); //Returns the HTTP response | |
delay(1000); | |
//Serial.println(F("*HS Format flash memory!")); | |
//SPIFFS.format(); | |
//Serial.println(F("*HS Done!")); | |
WiFi.disconnect(true); | |
WiFiManager wifiManager; | |
Serial.println(F("*HS WifiManager resetSettings()")); | |
wifiManager.resetSettings(); | |
Serial.println(F("*HS Done!")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment