Skip to content

nvs_read return value for entries with data of length 0 #63843

Closed Answered by Laczen
r2r0 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@r2r0
Comment options

r2r0 Oct 13, 2023
Collaborator Author

@Laczen
Comment options

Laczen Oct 13, 2023
Collaborator

Answer selected by Laczen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants