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

◆ cloud_codec_init()

int cloud_codec_init ( struct cloud_data_cfg * cfg,
cloud_codec_evt_handler_t event_handler )

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

Initialize cloud codec.

Note
Currently only used for config updates in LwM2M.
Parameters
[in]cfgInitial config data.
[in]event_handlerHandler for events coming from the codec.
Return values
0on success.
-ENOMEMif LwM2M engine couldn't allocate its objects.