Skip to content

PAL Settings API aIndex argument #9836

Answered by abtink
jkcko asked this question in Q&A
Discussion options

You must be logged in to vote

@jkcko,

Or must the item at index i be filled in such that otPlatformSettingsGet returns OT_ERROR_NONE for indexes 0 to n-2 and otPlatformSettingsGet with index n-1 will return OT_ERROR_NOT_FOUND?

This is the expected behavior.

The settings key are either single-value or list-based.

  • otPlatSettingsGet() should allow iterating through all items in the list one by one by incrementing aIndex.
  • OT_ERROR_NOT_FOUND indicates end of the list.
  • The order of items in the list-based key can change after otPlatSettingsAdd() or otPlatSettingsDelete() calls.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jkcko
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