I created a project to experiment with web sockets. In addition to the mBed code you will need the client side code which is in the .zip file below.
The demo code can run a common anode RGB connect to p23(red), P22(green) and P21(blue). The color of the LED can be sent by sending a ASCII-HEX rrggbb string message through the WebSocket. The demo will also send a temperature measurement of an 10K RTC sensor connected to GND with a 10K pull on p20.
I modified the HTTP server found in the Cookbook to support the WebSockets.
2 comments on WebSockets:
Please log in to post comments.