#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
-
level | Battery voltage level for the power-off warnings. |
- Return values
-
0 | if successful. |
-EFAULT | if AT command failed. |