This is a modification of the NTPClient_HelloWorld to use the wifly link instead of the eth link
Dependencies: mbed LM75B NTPClient WiflyInterface MMA7660 WebSocketClient
Revision 6:b420491ecd8d, committed 2013-02-08
- Comitter:
- samux
- Date:
- Fri Feb 08 13:14:09 2013 +0000
- Parent:
- 5:ab84dbbe7366
- Child:
- 7:cf51acd03e52
- Commit message:
- change board id
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);