Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By electronicsguy
#46179
danbicks wrote:Works a treat :)

int rc = WiFi.hostByName("www.yahoo.com", address);
Serial.print("Check IP return: "); Serial.println(rc);
Serial.println(address);

Cheers Dans


Thanks, it indeed does work like a charm.

FYI for others: declare the address variable like this:
Code: Select allIPAddress address;