123456789101112131415161718 |
- /*
- * SPDX-FileCopyrightText: 2022 Helmut Pozimski <helmut@pozimski.eu>
- *
- * SPDX-License-Identifier: GPL-2.0-only
- */
-
- #include <stdint.h>
- #include <time.h>
- #include <esp_err.h>
- #include <nvs_flash.h>
- esp_err_t storage_init(char* name);
- esp_err_t write_wakeup_time_tm(struct tm* datetime, uint16_t value);
- esp_err_t write_wakeup_time_str(char* key, uint16_t value);
- esp_err_t read_wakeup_time_tm(struct tm* datetime, uint16_t* value);
- esp_err_t read_wakeup_time_str(char* key, uint16_t* value);
- esp_err_t delete_wakeup_time_str(char* key);
- void delete_outdated_entries(struct tm* datetime, char* namespace);
|