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

◆ modem_battery_low_level_set()

int modem_battery_low_level_set ( int  battery_level)

#include <include/modem/modem_battery.h>

Set the battery voltage low level for the modem.

Note
This function sends an AT command for setting the battery voltage low level for the modem. If notifications of battery voltage low level have been subscribed (see modem_battery_low_level_enable), the modem sends clients a notification when the measured battery voltage is below the defined level. The modem reads sensors periodically in connected mode. The default period is 60 seconds. If the temperature or voltage gets close to the set threshold, a shorter period is used. Battery voltage low level has range 3100-5000 mV. Factory default is 3300 mV.
Parameters
battery_levelBattery voltage low level. Unit of measure mV.
Return values
0if successful.
-EFAULTif AT command failed.