MattS-UK:
You might want to think about splitting your message on the 'SR' then convert the '1' into an integer, which you might use as an index into an array of servos.
That's a good idea, thanks!
MattS-UK:
Also. Read your code again. You enter the IF conditional when size is > 0 but then proceed to always reading a message of more than one byte. Is that what you mean to do?
This is in the UdpServer example from the UIPEthernet lib. I thought this meant that it won't perform udp.read unless there's anything to read...