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

◆ pdn_ctx_create()

int pdn_ctx_create ( uint8_t * cid,
pdn_event_handler_t cb )

#include <include/modem/pdn.h>

Create a PDP context.

If a callback is provided via the cb parameter, the library will generate events from the +CNEC and +GGEV AT notifications to report state of the PDN connection.

Deprecated
Use lte_lc_pdn_ctx_create().
Parameters
[out]cidThe ID of the new PDP context.
cbOptional event handler.
Returns
int Zero on success or a negative errno otherwise.