-
Please clarify how the aIndex argument is used in the PAL settings.h API. The comments state that the order of the items associated with a specific key does not need to be maintained when added or deleted, but it is not clear on any further requirements with regards to the the use of the index or storage of the items regarding the index. If
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is the expected behavior. The settings key are either single-value or list-based.
|
Beta Was this translation helpful? Give feedback.
@jkcko,
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 incrementingaIndex
.OT_ERROR_NOT_FOUND
indicates end of the list.otPlatSettingsAdd()
orotPlatSettingsDelete()
calls.