Demo app to read data from temperature sensor connected to STM-F411RE and send values to AT&T M2X Data Service via MTS shield.

Dependencies:   M2XStreamClient SocketModem jsonlite mbed

Fork of STM32_MTS_Wifi_Connect_M2X by AT&T Developer Summit Hackathon 2016

Files at this revision

API Documentation at this revision

Comitter:
joe_tijerina
Date:
Tue Aug 19 19:12:11 2014 +0000
Parent:
15:6d67c5dc7f2a
Child:
17:e54be812a3b3
Commit message:
Removed line of code

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Jul 25 16:36:12 2014 +0000
+++ b/main.cpp	Tue Aug 19 19:12:11 2014 +0000
@@ -102,12 +102,8 @@
     printf("updateLocation response code: %d\r\n", response);
     if (response == -1) while (true) ;
     
-    response = m2xClient.updateLocation(feed, name, latitude, longitude, elevation);
-    printf("updateLocation response code: %d\r\n", response);
-    if (response == -1) while (true) ;    
-            
-    //while(0)    
-    for (int i = 0; i < 5; i++)
+    //for (int i = 0; i < 5; i++)
+    while(1)    
     {    
         myled = 1; // LED is ON    
         a = tempSensor.read_u16();