Found 5 other functions taking a
nvs_stats_t
argument:
Fill structure nvs_stats_t. It provides info about memory used by NVS. This function calculates the number of used entries, free entries, available entries, total entries and number of namespaces in partition.
{c}
// Example of nvs_get_stats() to get overview of actual statistics of data entries :
nvs_stats_t nvs_stats;
nvs_get_stats(NULL, &nvs_stats);
printf("Count: UsedEntries = (%lu), FreeEntries = (%lu), AvailableEntries = (%lu), AllEntries = (%lu)\n",
nvs_stats.used_entries, nvs_stats.free_entries, nvs_stats.available_entries, nvs_stats.total_entries);