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

◆ lte_lc_pdn_activate()

int lte_lc_pdn_activate ( uint8_t cid,
int * esm,
enum lte_lc_pdn_family * family )

#include <include/modem/lte_lc.h>

Activate a PDN connection.

Activates the PDP context with the given CID, establishing a PDN connection.

Note
Requires CONFIG_LTE_LC_PDN_MODULE to be enabled.
Parameters
[in]cidThe context ID.
[out]esmIf provided, the function will block to return the ESM error reason.
[out]familyIf provided, the function will block to return LTE_LC_PDN_FAM_IPV4 if only IPv4 is supported, or LTE_LC_PDN_FAM_IPV6 if only IPv6 is supported. Otherwise, this value will remain unchanged.
Return values
0On success.
Returns
A negative errno otherwise.