Skip to content

Instantly share code, notes, and snippets.

@ThomasStuetz
Last active March 12, 2018 15:34
Show Gist options
  • Save ThomasStuetz/97a14526c1c4a937a29522cb1a31eb70 to your computer and use it in GitHub Desktop.
Save ThomasStuetz/97a14526c1c4a937a29522cb1a31eb70 to your computer and use it in GitHub Desktop.
handleResetEspRequest
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