nRF Connect SDK API 0.1.0
|
int lwm2m_carrier_battery_status_set | ( | int32_t | battery_status | ) |
#include <lib/bin/lwm2m_carrier/include/lwm2m_carrier.h>
Set the OMA LwM2M Device
object Battery Status
resource (/3/0/20).
LWM2M_CARRIER_POWER_SOURCE_INTERNAL_BATTERY needs to be enabled first using lwm2m_carrier_avail_power_sources_set().
[in] | battery_status | Internal battery status to be reported (lwm2m_carrier_battery_status_values). |
0 | If the battery status has been updated successfully. |
-EINVAL | If the battery status is not supported. |
-ENODEV | If internal battery is not listed as an available power source. |