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

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Fri Feb 08 13:14:09 2013 +0000
Parent:
5:ab84dbbe7366
Commit message:
change board id

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ab84dbbe7366 -r b420491ecd8d main.cpp
--- 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);