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

◆ lwm2m_codec_helpers_object_path_list_add()

int lwm2m_codec_helpers_object_path_list_add ( struct cloud_codec_data output,
const struct lwm2m_obj_path  path[],
size_t  path_size 
)

#include <applications/asset_tracker_v2/src/cloud/cloud_codec/lwm2m/lwm2m_codec_helpers.h>

Generate path lists with reference to objects. This function outputs a list of paths that can be used to reference objects that should be updated (sent to server) when calling the lwm2m_send_cb() function.

Parameters
[out]outputPointer to structure into which the input path list will be added.
[in]pathList that contains LwM2M paths that will be added to the output variable.
[in]path_sizeSize of the path list variable (path).
Return values
0If successful, otherwise a negative value indicating the reason of failure.
Returns
-ENODATA if the queued flag present in the input structure is false.