Chapter 2. API Reference
void nvs_entry_info(nvs_iterator_t iterator, nvs_entry_info_t *out_info)
Fills nvs_entry_info_t structure with information about entry pointed to by the iterator.
Parameters
• [in] iterator: Iterator obtained from nvs_entry_find or nvs_entry_next function. Must be
non-NULL.
• [out] out_info: Structure to which entry information is copied.
void nvs_release_iterator(nvs_iterator_t iterator)
Release iterator.
Parameters
• [in] iterator: Release iterator obtained from nvs_entry_find function. NULL argument is
allowed.
Structures
struct nvs_entry_info_t
information about entry obtained from nvs_entry_info function
Public Members
char namespace_name[16]
Namespace to which key-value belong
char key[16]
Key of stored key-value pair
nvs_type_t type
Type of stored key-value pair
struct nvs_stats_t
Note Info about storage space NVS.
Public Members
size_t used_entries
Amount of used entries.
size_t free_entries
Amount of free entries.
size_t total_entries
Amount all available entries.
size_t namespace_count
Amount name space.
Macros
ESP_ERR_NVS_BASE
Starting number of error codes
ESP_ERR_NVS_NOT_INITIALIZED
The storage driver is not initialized
ESP_ERR_NVS_NOT_FOUND
Id namespace doesn’t exist yet and mode is NVS_READONLY
ESP_ERR_NVS_TYPE_MISMATCH
The type of set or get operation doesn’t match the type of value stored in NVS
ESP_ERR_NVS_READ_ONLY
Storage handle was opened as read only
Espressif Systems 722
Submit Document Feedback
Release v4.4