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

◆ util_get_ip_addr()

void util_get_ip_addr ( int cid,
char addr4[INET_ADDRSTRLEN],
char addr6[INET6_ADDRSTRLEN] )

use AT command to get IPv4 and IPv6 addresses for specified PDN

Parameters
[in]cidPDP Context ID as defined in "+CGDCONT" command (0~10).
[out]addr4Buffer to hold the IPv4 address. May be NULL.
[out]addr6Buffer to hold the IPv6 address. May be NULL.