esp-idf-svc icon indicating copy to clipboard operation
esp-idf-svc copied to clipboard

nvs: support StorageIterate

Open codyps opened this issue 2 years ago • 1 comments

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:

  1. restrict to esp-idf 5
  2. 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

codyps avatar Apr 11 '23 21:04 codyps

See this though. Let me know what you think.

ivmarkov avatar Apr 15 '23 15:04 ivmarkov