Added WiFi Credentials reset
This commit is contained in:
parent
25f5136013
commit
9432f27288
|
@ -61,7 +61,7 @@ enum UpdateStatus {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned long HW_GROUP = 1; // Changes with hardware changes that require software changes
|
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)
|
unsigned long SP_VERSION = 0; // Loaded from SPIFFS; changed with each SPIFFS build; must always increase (uses timestamp as version)
|
||||||
|
|
||||||
// HTTPS update settings
|
// HTTPS update settings
|
||||||
|
@ -398,6 +398,14 @@ void printIPAddress() {
|
||||||
IBIS_DS009(addrStr);
|
IBIS_DS009(addrStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void resetWiFiCredentials() {
|
||||||
|
STA_SSID = "";
|
||||||
|
STA_PASS = "";
|
||||||
|
STA_SETUP = false;
|
||||||
|
saveConfig();
|
||||||
|
ESP.restart();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FIRMWARE & SPIFFS UPDATE
|
FIRMWARE & SPIFFS UPDATE
|
||||||
*/
|
*/
|
||||||
|
@ -594,6 +602,11 @@ void loop() {
|
||||||
printIPAddress();
|
printIPAddress();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 10: {
|
||||||
|
// Reset WiFi Credentials
|
||||||
|
resetWiFiCredentials();
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
|
@ -1 +1 @@
|
||||||
1802130009
|
1802150003
|
Loading…
Reference in New Issue