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

◆ lwm2m_carrier_power_source_voltage_set()

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().

  • The default value of this resource is 0 (mV).
Parameters
[in]power_sourcePower source to which the measurement corresponds.
[in]valueVoltage measurement expressed in millivolt (mV).
Return values
0If the voltage measurements have been updated successfully.
-EINVALIf the power source is not supported.
-ENODEVIf the power source is not listed as an available power source.