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

◆ modem_info_get_batt_voltage()

int modem_info_get_batt_voltage ( int *  val)

#include <include/modem/modem_info.h>

Obtain the battery voltage.

Get the battery voltage, in mV, with a 4 mV resolution.

Parameters
valPointer to the target variable.
Return values
0if the operation was successful.
-EINVALif the provided buf_size was not enough. Otherwise, a (negative) error code is returned.