Sample project to connect to AT&T M2X from the STM32 Nucleo + MTSAS Cellular SocketModem shield

Dependencies:   M2XStreamClient jsonlite mbed

Fork of MTSAS_Cellular_Connect_M2X_Example_F411 by Joe Tijerina

Revision:
16:3458e36115a9
Parent:
15:a7512648f111
Child:
17:d9fb4ea14d2b
--- a/main.cpp	Fri Sep 19 21:31:28 2014 +0000
+++ b/main.cpp	Wed Sep 24 18:53:25 2014 +0000
@@ -2,8 +2,10 @@
 #include "mtsas.h"
 #include "M2XStreamClient.h"
 
-const char key[] = "08b2d950b81eec9545bf076714f2cf06";    // Replace with your M2X API key
-const char feed[] = "e3a9c12feecbd7cec32bfecdca22ccd2";   // Replace with your blueprint Feed ID
+#define DEBUG
+
+const char key[] = "06ce9a9febbfc50ffceb0d8214427767";    // Replace with your M2X API key
+const char feed[] = "48c77c779f0eed1243e623190e588501";   // Replace with your blueprint Feed ID
 const char stream[] = "temperature"; // Replace with your stream name  
 char name[] = "austin"; // Name of current location of datasource
 
@@ -29,7 +31,7 @@
                 
     //Modify to match your apn if you are using an HSPA radio with a SIM card
     const char APN[] = "epc.tmobile.com";
-    printf("Starting...\n");
+    printf("Starting....\n");
     //Sets the log level to INFO, higher log levels produce more log output.
     //Possible levels: NONE, FATAL, ERROR, WARNING, INFO, DEBUG, TRACE
     MTSLog::setLogLevel(MTSLog::TRACE_LEVEL);
@@ -132,10 +134,10 @@
             printf("temperature: %f \n", temperature);
             response = m2xClient.put(feed, stream, temperature);
             printf("Post response code: %d\r\n", response);
-            if (response == -1) 
-            {
-                break; 
-            }                   
+            //if (response == -1) 
+            //{
+            //    break; 
+            //}                   
             
             myled = 0; // LED is OFF