-
Hi, nvs_read returns ENONT error for entries with data length equal to 0. Regards, |
Beta Was this translation helpful? Give feedback.
Answered by
Laczen
Oct 12, 2023
Replies: 1 comment 2 replies
-
Hi @r2r0, doing a write with length equal to zero is equivalent to a delete. This is used as an indication that this data does not need to be kept. When trying to read a deleted item it returns -ENOENT. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Laczen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @r2r0, doing a write with length equal to zero is equivalent to a delete. This is used as an indication that this data does not need to be kept. When trying to read a deleted item it returns -ENOENT.