nRF Connect SDK API 0.1.0
|
int lwm2m_carrier_power_source_voltage_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 Voltage
resource (/3/0/7).
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 | Voltage measurement expressed in millivolt (mV). |
0 | If the voltage 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. |