Official reference client implementation for Cumulocity SmartREST on u-blox C027.

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Vincent Wochnik

Revision:
100:47ea098f8a47
Parent:
96:5dfdc8568e9f
--- a/measurement/AnalogMeasurement.cpp	Thu May 07 09:57:55 2015 +0000
+++ b/measurement/AnalogMeasurement.cpp	Thu May 07 13:56:19 2015 +0000
@@ -14,8 +14,7 @@
 AnalogIn _analog2(A1);
 
 AnalogMeasurement::AnalogMeasurement(AbstractSmartRest& client,
-    SmartRestTemplate& tpl, long& deviceId, DeviceInfo& deviceInfo) :
-    _deviceId(deviceId),
+    SmartRestTemplate& tpl, DeviceInfo& deviceInfo) :
     _tpl(tpl),
     _client(client),
     _deviceInfo(deviceInfo)
@@ -64,7 +63,7 @@
     LCDDisplay::inst().setThirdLine(status);
     ComposedRecord record;
     IntegerValue msgId(107);
-    IntegerValue devId(_deviceId);
+    IntegerValue devId(deviceID);
     FloatValue analog1(data[0], 1);
     FloatValue analog2(data[1], 1);
     if ((!record.add(msgId)) || (!record.add(devId)) || (!record.add(analog1)) || (!record.add(analog2)))