When I use the command to get the ip address of an external (nttp) server, the command returns the ip address of the server just fine, but when I use the same command to get an ip address of a host on my LAN, it fails to get the ip address.
Here my code:
const char* mqttServerName ="servername";
IPAddress mqttServerIP;
WiFi.hostByName(mqttServerName, mqttServerIP)
What did I do wrong?
Thanks
bdollerup