get int8_t value for given key These functions retrieve value for the key, given its name. If \c key does not exist, or the requested variable type doesn't match the type which was used when setting a value, an error is returned. In case of any error, out_value is not modified. \c out_value has to be a pointer to an already allocated variable of the given type.
{c}
// Example of using nvs_get_i32:
int32_t max_buffer_size = 4096; // default value
esp_err_t err = nvs_get_i32(my_handle, "max_buffer_size", &max_buffer_size);
assert(err == ESP_OK || err == ESP_ERR_NVS_NOT_FOUND);
// if ESP_ERR_NVS_NOT_FOUND was returned, max_buffer_size will still
// have its default value.