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

◆ lte_lc_pdn_ctx_configure()

int lte_lc_pdn_ctx_configure ( uint8_t cid,
const char * apn,
enum lte_lc_pdn_family family,
struct lte_lc_pdn_pdp_context_opts * opts )

#include <include/modem/lte_lc.h>

Configure a PDP context.

The PDN connection must be inactive when the PDP context is configured.

Note
Requires CONFIG_LTE_LC_PDN_MODULE to be enabled.
Parameters
[in]cidThe context ID.
[in]apnThe Access Point Name.
[in]familyThe IP address family for the PDN connection.
[in]optsAdditional configuration options. Optional, can be NULL.
Return values
0On success.
Returns
A negative errno otherwise.