nRF Connect SDK API 0.1.0
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 Packet Data Protocol (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 Packet Data Network (PDN) connection.

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