esp-idf-svc
esp-idf-svc copied to clipboard
nvs: support StorageIterate
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 https://github.com/espressif/esp-idf/pull/11118. (Which we can apply in esp-idf-sys).
Plan on landing this:
- restrict to esp-idf 5
- have esp-idf-sys apply https://github.com/espressif/esp-idf/pull/11118 to the esp-idf we build (5 & master)
embedded-svc PR: https://github.com/esp-rs/embedded-svc/pull/48
See this though. Let me know what you think.