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

◆ lte_lc_pdn_default_ctx_apn_get()

int lte_lc_pdn_default_ctx_apn_get ( char * buf,
size_t len )

#include <include/modem/lte_lc.h>

Retrieve the default Access Point Name (APN).

The default APN is the APN of the default PDP context (zero).

Note
Requires CONFIG_LTE_LC_PDN_MODULE to be enabled.
Parameters
[out]bufThe buffer to copy the APN into. The string is null-terminated.
[in]lenThe size of the output buffer.
Return values
0On success.
Returns
A negative errno otherwise.