nRF Connect SDK API 0.1.0
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

embed:rst:inline :kconfig:option:`CONFIG_LTE_EDRX_REQ_VALUE_LTE_M` 

,

embed:rst:inline :kconfig:option:`CONFIG_LTE_EDRX_REQ_VALUE_NBIOT` 

,

embed:rst:inline :kconfig:option:`CONFIG_LTE_PTW_VALUE_LTE_M` 

and

embed:rst:inline :kconfig:option:`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
embed:rst:inline :kconfig:option:`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
embed:rst:inline :kconfig:option:`CONFIG_LTE_EDRX_REQ` 
if it is called during modem initialization.
Parameters
[in]enabletrue to enable eDRX, false to disable eDRX.
Return values
0if successful.
-EFAULTif AT command failed.