At firts, I explain my proyect:
I have a server and several clients with diferent IPs.
Each client has a temperatura sensor and send every second.
The server lisen and receive this information from all clients.
My problem is: I want to now witch send.
With de function "Udp.remoteIP()" I can do "Serial.print(Udp.remoteIP())" (for explample 192.168.4.10). But, how to extract the number 10?
I try:
IPAddress IP_Cliente_10 = (192, 168, 4, 10);
IP_Cliente = Udp.remoteIP();
if (IP_Cliente_10 == IP_Cliente) ........
But don't work.
Any idea?