Michael Ammann / Mbed 2 deprecated Cellular_m2x-demo-all

Dependencies:   C027_Support LM75B M2XStreamClient jsonlite mbed mbed-rtos

Fork of m2x-demo-all by AT&T M2X Team

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Sat Sep 13 16:06:06 2014 +0000
Parent:
9:08fdd1036e93
Child:
11:27b801a42d34
Commit message:
use improved M2X client

Changed in this revision

C027_Support.lib Show annotated file Show diff for this revision Revisions of this file
M2XStreamClient.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/C027_Support.lib	Sun Sep 07 01:42:11 2014 +0000
+++ b/C027_Support.lib	Sat Sep 13 16:06:06 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/ublox/code/C027_Support/#18aeacdae391
+http://mbed.org/teams/ublox/code/C027_Support/#436ee320efd6
--- a/M2XStreamClient.lib	Sun Sep 07 01:42:11 2014 +0000
+++ b/M2XStreamClient.lib	Sat Sep 13 16:06:06 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/ATT-M2X-team/code/M2XStreamClient/#f479e4f4db0e
+http://mbed.org/users/mazgch/code/M2XStreamClient/#5c71c2948812
--- a/main.cpp	Sun Sep 07 01:42:11 2014 +0000
+++ b/main.cpp	Sat Sep 13 16:06:06 2014 +0000
@@ -84,7 +84,7 @@
         }
     }
     
-    if (tmr.read_ms() > 10000) {
+    if (tmr.read_ms() > 1000) {
         tmr.reset();
         tmr.start();
         int response;
@@ -92,8 +92,8 @@
         MDMParser::NetStatus status;
         if (mdm.checkNetStatus(&status)) {
             sprintf(buf, "%d", status.rssi);
-            response = m2xClient.post(feedId, "rssi", buf);
-            printf("Post response code: %d\r\n", response);
+            response = m2xClient.put(feedId, "rssi", buf);
+            printf("Put response code: %d\r\n", response);
             if (response == -1) while (true) ;
         }
 //#define READING