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

◆ lwm2m_codec_helpers_setup_configuration_object()

int lwm2m_codec_helpers_setup_configuration_object ( struct cloud_data_cfg * cfg,
lwm2m_engine_set_data_cb_t callback )

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

Set the initial values for the application's configuration object and register callbacks for configuration changes.

Parameters
[in]cfgPointer to structure that contains the default configuration values for the application.
[in]callbackEvent handler to receive configuration updates.
Return values
0If successful, otherwise a negative value indicating the reason of failure.