From 32b417a1dab373b10043dfd21954ccf865e0983a Mon Sep 17 00:00:00 2001 From: Gregg Date: Thu, 10 Feb 2022 21:02:10 -0600 Subject: [PATCH] Added homeSpan method deleteStoredValues() Provides a programmatic way of deleting all stored Characteristic values from NVS. Identical to the 'V' CLI Command. --- src/HomeSpan.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HomeSpan.h b/src/HomeSpan.h index 3f1f215..da1ffac 100644 --- a/src/HomeSpan.h +++ b/src/HomeSpan.h @@ -197,6 +197,7 @@ struct Span{ void protectPinISR(uint8_t pin){ProtectedGPIOs[pin]=0;} // protects ISR on pin from NVS operations void setPairingCode(const char *s){sprintf(pairingCodeCommand,"S %9s",s);} // sets the Pairing Code - use is NOT recommended. Use 'S' from CLI instead + void deleteStoredValues(){processSerialCommand("V");} // deletes stored Characteristic values from NVS void enableAutoStartAP(){autoStartAPEnabled=true;} // enables auto start-up of Access Point when WiFi Credentials not found void setWifiCredentials(const char *ssid, const char *pwd); // sets WiFi Credentials