If I add the line - Serial.println(Udp.parsePacket()); - after line#23 I obtain:
The parsePacket() function consumes data in the buffer. When you call it twice, the second time is has nothing to do.
If I add the line - Serial.println(Udp.parsePacket()); - after line#23 I obtain:
The parsePacket() function consumes data in the buffer. When you call it twice, the second time is has nothing to do.