- Sat Jan 09, 2016 12:21 pm
#38315
Hi,
I'm new to the forum, thought it's time I join (read pages here occasionally and there's lots of great info, thanks). Just started playing with the ESP devices: versatile, simple to program and low cost - pretty impressive! My focus is on home automation at this time.
Anyway, I know this is an older thread but thought I'd reply as I had the same issue. I was able to write out the IP via Serial.print(WiFi.localIP()) fine but was struggling to get the formatted IP into a string.
I'm on the latest versions, so not sure if this would have solved your problem at the time.
If it does, you'll kick yourselves
...
String ipaddress = WiFi.localIP().toString();
Thought I'd leave that there for anyone Googling (this thread came up for me)!
Cheers,
Tim