Page 1 of 1

itterating over keys in nvs namespace

Posted: Thu Jul 06, 2017 2:10 pm
by StefanRvO
Hi
I want to itterate over all the keys in a given NVS namespace. Is this possible, or do i have to store a list of keys somewhere and use that?

Regards
Stefan

Re: itterating over keys in nvs namespace

Posted: Thu Jul 06, 2017 4:18 pm
by kolban
Howdy Stefan,
Have a look at the following requirement against ESP-IDF ...

https://github.com/espressif/esp-idf/issues/129

Re: itterating over keys in nvs namespace

Posted: Tue Apr 09, 2019 11:07 am
by themadsens
As mentioned in the above issue, I have created this gist which packs Ed Smallenburg's arduino sketch as an iterator.

It can iterate with a prefix in a specified namespace or across all namespaces. There is even an example to look at ..

/Flemming