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

◆ modem_battery_pofwarn_enable()

int modem_battery_pofwarn_enable ( enum pofwarn_level level)

#include <include/modem/modem_battery.h>

Configure power-off warnings from the modem.

Note
The warning is received as an unsolicited AT notification.
When the power-off warning is sent, the modem sets itself to Offline mode and sends unsolicited notifications.
The application is responsible for detecting possible increase in the battery voltage level and for restarting the LTE protocol activities. This can be detected by calling modem_battery_voltage_get. If the level is acceptable again (>3000 mV), the application can proceed with initialization of the modem.
Only supported with modem firmware v1.3.1 and higher.
Parameters
levelBattery voltage level for the power-off warnings.
Return values
0if successful.
-EFAULTif AT command failed.