Example program to connect to the internet via Ublox Cellular Shield and post MEMS sensor readings to M2X.

Dependencies:   C027_Support M2XStreamClient Nucleo_Sensor_Shield jsonlite mbed-rtos mbed

Fork of Cellular_m2x-demo-all by u-blox

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Wed Oct 01 09:23:57 2014 +0000
Parent:
12:348f375616cd
Child:
14:b756e26ac6bf
Commit message:
update dependency

Changed in this revision

C027_Support.lib Show annotated file Show diff for this revision Revisions of this file
LM75B.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/C027_Support.lib	Mon Sep 29 14:03:05 2014 +0000
+++ b/C027_Support.lib	Wed Oct 01 09:23:57 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/ublox/code/C027_Support/#327d209a8ab9
+http://mbed.org/teams/ublox/code/C027_Support/#f524fd9aa13d
--- a/LM75B.lib	Mon Sep 29 14:03:05 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/chris/code/LM75B/#6a70c9303bbe
--- a/main.cpp	Mon Sep 29 14:03:05 2014 +0000
+++ b/main.cpp	Wed Oct 01 09:23:57 2014 +0000
@@ -2,7 +2,6 @@
 #include "M2XStreamClient.h"
 
 #include "mbed.h"
-#include "LM75B.h"  //I2C Temperature Sensor
 #include "GPS.h"    //GPS
 
 //------------------------------------------------------------------------------------
@@ -34,8 +33,6 @@
 Client client;
 M2XStreamClient m2xClient(&client, m2xKey);
 
-LM75B tmp(SDA,SCL);         // I2C Temperature Sensor
-
 void on_data_point_found(const char* at, const char* value, int index, void* context) {
   printf("Found a data point, index: %d\r\n", index);
   printf("At: %s Value: %s\r\n", at, value);
@@ -98,7 +95,7 @@
         }
 //#define READING
 #ifdef READING
-        // read temperature
+        // read signal strength
         response = m2xClient.fetchValues(feedId, "rssi", on_data_point_found, NULL);
         printf("Fetch response code: %d\r\n", response);
         if (response == -1) while (true) ;
--- a/mbed-rtos.lib	Mon Sep 29 14:03:05 2014 +0000
+++ b/mbed-rtos.lib	Wed Oct 01 09:23:57 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#5dfe422a963d
+http://mbed.org/users/mbed_official/code/mbed-rtos/#631c0f1008c3
--- a/mbed.bld	Mon Sep 29 14:03:05 2014 +0000
+++ b/mbed.bld	Wed Oct 01 09:23:57 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/0b3ab51c8877
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file