![]() |
nRF Connect SDK API 3.3.99
|
| int lwm2m_carrier_power_source_current_set | ( | uint8_t | power_source, |
| int32_t | value ) |
#include <lib/bin/lwm2m_carrier/include/lwm2m_carrier.h>
Set the OMA LwM2M Device object Power Source Current resource (/3/0/8).
The power source source needs to be enabled first using lwm2m_carrier_avail_power_sources_set().
| [in] | power_source | Power source to which the measurement corresponds. |
| [in] | value | Current measurement expressed in milliampere (mA). |
| 0 | If the current measurements have been updated successfully. |
| -EINVAL | If the power source is not supported. |
| -ENODEV | If the power source is not listed as an available power source. |