Question : arduino wifi ip address to string
Answered by : peter-e-olsen-iii
String IpAddressToString(const IPAddress& ipAddress) { return String(ipAddress[0]) + String(".") +\ String(ipAddress[1]) + String(".") +\ String(ipAddress[2]) + String(".") +\ String(ipAddress[3]) ;
}
Source : | Last Update : Thu, 21 Jan 21
Question : arduino ip to string
Answered by : huldar
//IP addresses are stored as an array, you can just say
IPAddress my_IPAddress(162.198.2.3);
Serial.println(my_IPAddress[1]);
//Output
-------------------------------------------------------- > 198
Source : https://forum.arduino.cc/index.php?topic=228884.0 | Last Update : Thu, 16 Jul 20