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

◆ lte_lc_edrx_req()

int lte_lc_edrx_req ( bool enable)

#include <include/modem/lte_lc.h>

Request modem to enable or disable use of eDRX.

eDRX parameters can be set using

CONFIG_LTE_EDRX_REQ_VALUE_LTE_M 

,

CONFIG_LTE_EDRX_REQ_VALUE_NBIOT 

,

CONFIG_LTE_PTW_VALUE_LTE_M 

and

CONFIG_LTE_PTW_VALUE_NBIOT 

, or by calling lte_lc_edrx_param_set() and lte_lc_ptw_set().

For reference see 3GPP 27.007 Ch. 7.40.

Note
CONFIG_LTE_EDRX_REQ 
can be set to enable eDRX, which is generally sufficient. This option allows explicit disabling/enabling of eDRX 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_EDRX_REQ 
if it is called during modem initialization.
Requires
CONFIG_LTE_LC_EDRX_MODULE 
to be enabled.
Parameters
[in]enabletrue to enable eDRX, false to disable eDRX.
Return values
0if successful.
-EFAULTif AT command failed.