itterating over keys in nvs namespace

StefanRvO
Posts: 16
Joined: Sun Mar 06, 2016 9:25 pm

itterating over keys in nvs namespace

Postby StefanRvO » Thu Jul 06, 2017 2:10 pm

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

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: itterating over keys in nvs namespace

Postby kolban » Thu Jul 06, 2017 4:18 pm

Howdy Stefan,
Have a look at the following requirement against ESP-IDF ...

https://github.com/espressif/esp-idf/issues/129
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

themadsens
Posts: 17
Joined: Wed Sep 05, 2018 6:49 pm

Re: itterating over keys in nvs namespace

Postby themadsens » Tue Apr 09, 2019 11:07 am

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

Who is online

Users browsing this forum: No registered users and 90 guests