Skip to content

Conversation

@codyps
Copy link

@codyps codyps commented Apr 11, 2023

This implements StorageIterate for EspNvs. Note that while the Error on iteration is setup to work, the actual implementation in esp-idf does not return any errors during iteration (other than "Not Found", indicating iteration is complete). As a result, next() will always return Some(Ok(...)) or None and never Some(Err(...)).


This depends on the esp-idf 5 iteration APIs (the ones in esp-idf 4 aren't supported) plus the change in espressif/esp-idf#11118. (Which we can apply in esp-idf-sys).

Plan on landing this:

  1. restrict to esp-idf 5
  2. have esp-idf-sys apply nvs: support iteration over namespace by index (IDFGH-9782) espressif/esp-idf#11118 to the esp-idf we build (5 & master)

embedded-svc PR: esp-rs/embedded-svc#48

@ivmarkov
Copy link
Collaborator

See this though. Let me know what you think.

codyps added 2 commits May 10, 2023 15:46
This implements `StorageIterate` for `EspNvs`. Note that while the
`Error` on iteration is setup to work, the actual implementation in
esp-idf does not return any errors during iteration (other than "Not
Found", indicating iteration is complete). As a result, `next()` will
always return `Some(Ok(...))` or `None` and never `Some(Err(...))`.
@ivmarkov ivmarkov force-pushed the master branch 3 times, most recently from 8a8adba to 5ccb542 Compare July 5, 2023 19:27
@ivmarkov
Copy link
Collaborator

ivmarkov commented Sep 9, 2025

Closing as #599 was merged.

@ivmarkov ivmarkov closed this Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants