nRF Connect SDK API 0.1.0
|
#define NRF_MODEM_LIB_ON_INIT | ( | name, | |
_callback, | |||
_context | |||
) |
#include <include/modem/nrf_modem_lib.h>
Define a callback for nrf_modem_lib_init calls.
The callback function _callback
is invoked after the library has been initialized.
NRF_MODEM_LIB_ON_INIT
callback can be used to perform modem and library configurations that require the modem to be turned on in offline mode. It cannot be used to change the modem functional mode. Calls to lte_lc_connect
and CFUN AT calls are not allowed, and must be done after nrf_modem_lib_init
has returned. If a library needs to perform operations after the link is up, it can use the link controller and subscribe to a LTE_LC_ON_CFUN
callback.name | Callback name |
_callback | Callback function name |
_context | User-defined context for the callback |