How can you do with mbed device with this code ?
AnalogRead ControlPwm with ethernet
LPC1768 and Ethernet Connection
This contains follow how can make a udp communcation with mbed as an server and client as a threat. Also this project includes "picojson" JSON using with ethernet parsing and serializing.
Than shows how you can control pwm with ethernet and release analog data in "JSON" format.