I need the default gateway IP address for my ESP8266. I know that in LUA you can retrieve it with this code:
ip, netmask, gateway = wifi.sta.getip()
print(gateway)
But how using Arduino/C++?
Use WiFi.gatewayIP().toString() to get it as string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With