nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_cloud_obj_int_array_add()

int nrf_cloud_obj_int_array_add ( struct nrf_cloud_obj *const  obj,
const char *const  key,
const uint32_t  ints[],
const uint32_t  ints_cnt,
const bool  data_child 
)

#include <include/net/nrf_cloud_codec.h>

Add a key string and integer array value to the provided object.

Parameters
[out]objObject to contain key and value.
[in]keyKey string; must be valid and constant for the life of the object.
[in]intsInteger array.
[in]ints_cntNumber of items in array.
[in]data_childIf 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
-EINVALInvalid parameter.
-ENOENTObject is not initialized.
-ENOMEMOut of memory.
-ENOTSUPAction not supported for the object's type.
0Success; item added.