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:
97:ea056f6be2e8
Parent:
96:5dfdc8568e9f
Child:
98:9f2de96941c4
--- a/MbedAgent.cpp	Mon Apr 27 10:50:21 2015 +0000
+++ b/MbedAgent.cpp	Mon Apr 27 13:02:50 2015 +0000
@@ -4,11 +4,10 @@
 #include "logging.h"
 #include "watchdog.h"
 
-MbedAgent::MbedAgent(GPSI2C& gps, MDMSerial& mdm,
-    DeviceInfo& deviceInfo, DeviceMemory& deviceMemory) :
+MbedAgent::MbedAgent(GPSI2C& gps, DeviceInfo& deviceInfo,
+    DeviceMemory& deviceMemory) :
     _deviceId(0),
-    _mdm(mdm),
-    _client(mdm),
+    _client(),
     _bootstrap(_client, deviceInfo, deviceMemory),
     _integration(_client, _tpl, _deviceId, deviceInfo),
     _configurationSynchronization(_client, _tpl, _deviceId, deviceMemory),
@@ -85,9 +84,9 @@
 
 void MbedAgent::loop()
 {
-    ReportThread reportThread(pool, _mdm);
+    ReportThread reportThread(pool);
     _operationSupport.run();
-    PollThread pollThread(pool, _mdm, _configurationSynchronization);
+    PollThread pollThread(pool, _configurationSynchronization);
     pollThread.setChannel(_deviceId);
 
     Watchdog wdt;