#include <include/net/nrf_cloud_codec.h>
Add a key string and string array value to the provided object.
- Parameters
-
[out] | obj | Object to contain key and value. |
[in] | key | Key string; must be valid and constant for the life of the object. |
[in] | strs | String array. |
[in] | strs_cnt | Number of items in array. |
[in] | data_child | If true, key and value will be added as a child to a "data" object. If false, key and value will be added as a child to the provided object. |
- Return values
-
-EINVAL | Invalid parameter. |
-ENOENT | Object is not initialized. |
-ENOMEM | Out of memory. |
-ENOTSUP | Action not supported for the object's type. |
0 | Success; item added. |