nvs_utilities.h 622 B

12345678910111213141516
  1. #pragma once
  2. #include "esp_err.h"
  3. #include "nvs.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. bool isNameValid(char * key);
  8. esp_err_t store_nvs_value_len(nvs_type_t type, const char *key, void * data, size_t data_len);
  9. esp_err_t store_nvs_value(nvs_type_t type, const char *key, void * data);
  10. esp_err_t get_nvs_value(nvs_type_t type, const char *key, void*value, const uint8_t buf_size);
  11. void * get_nvs_value_alloc(nvs_type_t type, const char *key);
  12. esp_err_t erase_nvs(const char *key);
  13. void * get_nvs_value_alloc_default(nvs_type_t type, const char *key, void * default_value, size_t blob_size);
  14. #ifdef __cplusplus
  15. }
  16. #endif