Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support LM75B M2XStreamClient jsonlite mbed mbed-rtos
Fork of m2x-demo-all by
Revision 10:ba926a8f1fe6, committed 2014-09-13
- 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
--- 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
