nvs::NVSHandle::get_item_size() method
Look up the size of an entry's data.
Arguments
datatype
Data type to search for.
key
Key name. Maximum length is (NVS_KEY_NAME_MAX_SIZE-1) characters. Shouldn't be empty.
size
Size of the item, if it exists. For strings, this size includes the zero terminator.
Return value
- ESP_OK if the item with specified type and key exists. Its size will be returned via \c size. - ESP_ERR_NVS_NOT_FOUND if an item with the requested key and type doesn't exist or any other error occurs.
nvs::NVSHandle::get_item_size() overrides 2 methodss:
![]()
nvs::NVSHandle::get_item_size()