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_Nucleo411_Accel_ESP8266-wifi by AT&T Developer Summit Hackathon 2016

Files at this revision

API Documentation at this revision

Comitter:
jb8414
Date:
Sat Aug 29 17:14:53 2015 +0000
Parent:
1:c7b9e522cc8e
Child:
3:694a1a67b156
Commit message:
1 sec wait

Changed in this revision

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