|
@@ -46,6 +46,11 @@ esp_err_t read_wakeup_time_tm(struct tm* datetime, uint16_t* value) {
|
|
|
return read_wakeup_time_str(key, value);
|
|
|
}
|
|
|
|
|
|
+esp_err_t delete_wakeup_time_str(char* key) {
|
|
|
+ esp_err_t ret = nvs_erase_key(handle, key);
|
|
|
+ return ret | nvs_commit(handle);
|
|
|
+}
|
|
|
+
|
|
|
void delete_outdated_entries(struct tm* datetime, char* namespace) {
|
|
|
char reference_date_str[9];
|
|
|
format_date(datetime, reference_date_str);
|