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 M2XStreamClient jsonlite mbed-rtos mbed
Fork of Cellular_m2x-demo-all by
Diff: main.cpp
- Revision:
- 13:b04452198625
- Parent:
- 10:ba926a8f1fe6
- Child:
- 14:fa2f402e4ce8
diff -r 348f375616cd -r b04452198625 main.cpp --- 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) ;