diff --git a/WiFi_Shield.ino b/WiFi_Shield.ino index d1bb26a..90a0389 100644 --- a/WiFi_Shield.ino +++ b/WiFi_Shield.ino @@ -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; } diff --git a/firmware.bin b/firmware.bin index eb757eb..279a274 100644 Binary files a/firmware.bin and b/firmware.bin differ diff --git a/firmware.version b/firmware.version index 23df24b..6955859 100644 --- a/firmware.version +++ b/firmware.version @@ -1 +1 @@ -1802130009 \ No newline at end of file +1802150003 \ No newline at end of file