An example program that uses a Wifly module to send messages over web sockets

Dependencies:   WebSocketClient WiflyInterface mbed LM75B MMA7660

Fork of Websocket_Wifly_HelloWorld by Samuel Mokrani

Revision:
6:b420491ecd8d
Parent:
5:ab84dbbe7366
--- a/main.cpp	Fri Feb 08 12:17:45 2013 +0000
+++ b/main.cpp	Fri Feb 08 13:14:09 2013 +0000
@@ -39,7 +39,7 @@
 
     while (1) {
         // create json string with acc/tmp data
-        sprintf(json_str, "{\"id\":\"app_board_EW2013\",\"ax\":%d,\"ay\":%d,\"az\":%d, \"tmp\":%d}", (int)(acc.x()*360), (int)(acc.y()*360), (int)(acc.z()*360), (int)tmp.read());
+        sprintf(json_str, "{\"id\":\"app_board_wifly_EW2013\",\"ax\":%d,\"ay\":%d,\"az\":%d, \"tmp\":%d}", (int)(acc.x()*360), (int)(acc.y()*360), (int)(acc.z()*360), (int)tmp.read());
         
         // send str
         ws.send(json_str);