How can I get local IP?
Posted: Tue Nov 07, 2017 2:10 am
Hi,
I'm using ESP32 as station mode, once connect to an AP I need to send my local IP to a remote server.
One way to do this is storing the IP in a global variable manually when SYSTEM_EVENT_STA_GOT_IP happend. While, how to get local IP in a recommended way?
I'm using ESP32 as station mode, once connect to an AP I need to send my local IP to a remote server.
One way to do this is storing the IP in a global variable manually when SYSTEM_EVENT_STA_GOT_IP happend. While, how to get local IP in a recommended way?