nvs::open_nvs_handle() function
This function does the same as open_nvs_handle_from_partition but uses the default nvs partition instead of a partition_name parameter.
Syntax
std::unique_ptr<NVSHandle> open_nvs_handle(const char *ns_name,
nvs_open_mode_t open_mode,
esp_err_t *err = nullptr);