![]() |
nRF Connect SDK API 3.3.99
|
| 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().
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.CONFIG_LTE_LC_PSM_MODULE to be enabled.| [in] | enable | true to enable PSM, false to disable PSM. |
| 0 | if successful. |
| -EFAULT | if AT command failed. |