Example of using the ATT M2X back end. Connect over Wifi with the ESP8266 chip. This code sends accelerometer data to M2X. This code can be used for Any board, just change the RX/TX pins the wifi adapter is connected to.
Dependencies: ESP8266Interface FXOS8700Q M2XStreamClient jsonlite mbed
Fork of M2X_K64F_Accel by
Diff: main.cpp
- Revision:
- 2:68b759c89fd9
- Parent:
- 1:c7b9e522cc8e
- Child:
- 3:694a1a67b156
diff -r c7b9e522cc8e -r 68b759c89fd9 main.cpp --- a/main.cpp Sat Aug 29 17:11:28 2015 +0000 +++ b/main.cpp Sat Aug 29 17:14:53 2015 +0000 @@ -60,7 +60,7 @@ if (maxTilt > 20) { ret = m2xClient.updateStreamValue(deviceId, streamName, maxTilt); printf("send() returned %d\r\n", ret); - wait(0.5); + wait(1.0); } } } \ No newline at end of file