Search found 1 match
- Sun Mar 29, 2020 8:14 pm
- Forum: ESP-IDF
- Topic: How to get IP address?
- Replies: 7
- Views: 23500
How to get IP address?
Hello there. Please can you tell me easy method how to get IP address? Actually I am trying something like that: esp_netif_ip_info_t ip_info; esp_netif_get_ip_info(IP_EVENT_STA_GOT_IP,&ip_info); printf("My IP: " IPSTR "\n", IP2STR(&ip_info.ip)); printf("My GW: " IPSTR "\n", IP2STR(&ip_info.gw)); pri...