config.h 737 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include "esp_system.h"
  5. #include "nvs_utilities.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. #ifdef __cplusplus
  10. }
  11. #endif
  12. bool config_has_changes();
  13. void config_commit_to_nvs();
  14. void config_start_timer();
  15. void config_init();
  16. void * config_alloc_get_default(nvs_type_t type, const char *key, void * default_value, size_t blob_size);
  17. void config_delete_key(const char *key);
  18. void config_set_default(nvs_type_t type, const char *key, void * default_value, size_t blob_size);
  19. void * config_alloc_get(nvs_type_t nvs_type, const char *key) ;
  20. bool wait_for_commit();
  21. char * config_alloc_get_json(bool bFormatted);
  22. esp_err_t config_set_value(nvs_type_t nvs_type, const char *key, void * value);