![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| val | Pointer to the target variable. |
| 0 | if the operation was successful. |
| -EINVAL | if the provided buf_size was not enough. Otherwise, a (negative) error code is returned. |