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

◆ lte_lc_psm_req()

int lte_lc_psm_req ( bool enable)

#include <include/modem/lte_lc.h>

Request modem to enable or disable Power Saving Mode (PSM).

PSM parameters can be set using

CONFIG_LTE_PSM_REQ_FORMAT 

,

CONFIG_LTE_PSM_REQ_RPTAU 

,

CONFIG_LTE_PSM_REQ_RAT 

,

CONFIG_LTE_PSM_REQ_RPTAU_SECONDS 

and

CONFIG_LTE_PSM_REQ_RAT_SECONDS 

, or by calling lte_lc_psm_param_set() or lte_lc_psm_param_set_seconds().

Note
CONFIG_LTE_PSM_REQ 
can be set to enable PSM, which is generally sufficient. This option allows explicit disabling/enabling of PSM requesting after modem initialization. Calling this function for run-time control is possible, but it should be noted that conflicts may arise with the value set by
CONFIG_LTE_PSM_REQ 
if it is called during modem initialization.
Requires
CONFIG_LTE_LC_PSM_MODULE 
to be enabled.
Parameters
[in]enabletrue to enable PSM, false to disable PSM.
Return values
0if successful.
-EFAULTif AT command failed.