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

◆ lwm2m_codec_helpers_set_battery_data()

int lwm2m_codec_helpers_set_battery_data ( struct cloud_data_battery battery)

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

Set battery data.

Parameters
[in]batteryPointer to structure that contains battery data.
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.