websocket client for gyro and 3-Axio Accelerometer
Dependencies: ITG3200 MMA7660FC WebSocketClient WiflyInterface mbed
Diff: main.cpp
- Revision:
- 1:f43651a4e987
- Parent:
- 0:a4c49388bc5e
- Child:
- 2:edb0c7e84275
--- a/main.cpp Wed Feb 04 13:40:01 2015 +0000 +++ b/main.cpp Thu Feb 05 03:28:32 2015 +0000 @@ -62,7 +62,7 @@ //websocket send data - sprintf( data , "{\"temp\": %d, \"x\": %d, \"y\": %d, \"z\": %d\n , \"ax\": %d\n, \"ay\": %d\n, \"az\": %d\n}", temp, x, y, z ,ax,ay,az); + sprintf( data , "{ \"x\": %f, \"y\": %f, \"z\": %f\n , \"ax\": %f\n, \"ay\": %f\n, \"az\": %f\n}", x, y, z ,ax,ay,az); ws.send(data); wait(1.0);