nvs_utilities.h 444 B

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