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

◆ lte_lc_pdn_id_get()

int lte_lc_pdn_id_get ( uint8_t cid)

#include <include/modem/lte_lc.h>

Retrieve the PDN ID for a given PDP context.

The PDN ID can be used to route traffic through a PDN connection. Multiple contexts (CIDs) may share the same PDN ID if they route through the same network connection.

Note
Requires CONFIG_LTE_LC_PDN_MODULE to be enabled.
Parameters
[in]cidThe context ID.
Returns
A non-negative PDN ID on success.
A negative errno otherwise.