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

◆ lwm2m_carrier_power_source_current_set()

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

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