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

◆ pdn_ctx_configure()

int pdn_ctx_configure ( uint8_t  cid,
const char *  apn,
enum pdn_fam  family,
struct pdn_pdp_opt opts 
)

#include <include/modem/pdn.h>

Configure a Packet Data Protocol context.

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

Parameters
cidThe PDP context to configure.
apnThe Access Point Name to configure the PDP context with.
familyThe family to configure the PDN context for.
optsOptional additional configuration options.
Returns
int Zero on success or a negative errno otherwise.