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

◆ lte_lc_connect()

int lte_lc_connect ( void )

#include <include/modem/lte_lc.h>

Connect to LTE network.

This function sets the modem to online mode using lte_lc_normal. The client does not need to do anything to re-connect if the connection is lost but the modem will handle it automatically.

Note
After initialization, the system mode and LTE preference are set to the default modes selected with Kconfig.
Return values
0if successful.
-EFAULTif an AT command failed.
-ETIMEDOUTif a connection attempt timed out before the device was registered to a network.
-EINPROGRESSif a connection establishment attempt is already in progress.