nvs_utilities.h 474 B

1234567891011121314
  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. #ifdef __cplusplus
  13. }
  14. #endif