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

Revision:
13:b04452198625
Parent:
10:ba926a8f1fe6
Child:
14:b756e26ac6bf
--- 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) ;