Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Revision:
96:ea056f6be2e8
Parent:
95:5dfdc8568e9f
Child:
97: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;