Connect to ESP32 via serial console
screen /dev/cu.usbserial-0001 115200
Check IP address
>>> import network
>>> sta_if = network.WLAN(network.STA_IF)
>>> sta_if.ifconfig()
('192.168.0.14', '255.255.255.0', '192.168.0.1', '192.168.0.1')
The result represents a list that takes as follows: IP address, Subnet mask, Default gateway, DNS server address.
Reference
Top comments (0)