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:
65:a62dbef2f924
Parent:
60:3c822f97fc73
Child:
67:c360a2b2c948
--- a/MbedAgent.cpp	Thu Oct 30 12:30:04 2014 +0000
+++ b/MbedAgent.cpp	Thu Oct 30 13:38:20 2014 +0000
@@ -13,7 +13,7 @@
     _accelerationMeasurement(_client, _tpl, _deviceId, _io.accelerometer()),
     _analogMeasurement(_client, _tpl, _deviceId, _io.analog1(), _io.analog2()),
     _locationUpdate(_client, _tpl, _deviceId, _io.gpsTracker()),
-    _operationSupport(_client, _tpl, _deviceId),
+    _operationSupport(_client, _tpl, _deviceId, _io),
     _deviceId(0)
 {
 }
@@ -62,14 +62,14 @@
     while (true) {
         timer.reset();
         
-        /*_signalQualityMeasurement.run();
+        _signalQualityMeasurement.run();
         _temperatureMeasurement.run();
         _accelerationMeasurement.run();
         _analogMeasurement.run();
-        _locationUpdate.run();*/
+        _locationUpdate.run();
         _operationSupport.run();
         
-        while (timer.read() < 10 /*MBED_AGENT_INTERVAL*/) {
+        while (timer.read() < MBED_AGENT_INTERVAL) {
             Thread::yield();
         }
     }