arduino wifi.localip() to string code example
Example: WiFi.localIP() to string
String ip2Str(IPAddress ip){
String s="";
for (int i=0; i<4; i++) {
s += i ? "." + String(ip[i]) : String(ip[i]);
}
return s;
}
String ip2Str(IPAddress ip){
String s="";
for (int i=0; i<4; i++) {
s += i ? "." + String(ip[i]) : String(ip[i]);
}
return s;
}