Added WiFi Credentials reset

This commit is contained in:
Julian Metzler 2018-02-15 19:57:45 +01:00
parent 25f5136013
commit 9432f27288
3 changed files with 15 additions and 2 deletions

View File

@ -61,7 +61,7 @@ enum UpdateStatus {
*/
unsigned long HW_GROUP = 1; // Changes with hardware changes that require software changes
unsigned long FW_VERSION = 1802130009; // Changes with each release; must always increase
unsigned long FW_VERSION = 1802150003; // Changes with each release; must always increase
unsigned long SP_VERSION = 0; // Loaded from SPIFFS; changed with each SPIFFS build; must always increase (uses timestamp as version)
// HTTPS update settings
@ -398,6 +398,14 @@ void printIPAddress() {
IBIS_DS009(addrStr);
}
void resetWiFiCredentials() {
STA_SSID = "";
STA_PASS = "";
STA_SETUP = false;
saveConfig();
ESP.restart();
}
/*
FIRMWARE & SPIFFS UPDATE
*/
@ -594,6 +602,11 @@ void loop() {
printIPAddress();
break;
}
case 10: {
// Reset WiFi Credentials
resetWiFiCredentials();
break;
}
default: {
break;
}

Binary file not shown.

View File

@ -1 +1 @@
1802130009
1802150003