Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Revision:
72:c5709ae7b193
Parent:
71:063c45e99578
Child:
73:313975bfec96
--- a/MbedAgent.cpp	Mon Feb 16 09:17:30 2015 +0000
+++ b/MbedAgent.cpp	Mon Feb 16 13:15:52 2015 +0000
@@ -1,5 +1,6 @@
 #include "MbedAgent.h"
 #include "rtos.h"
+#include "logging.h"
 
 MbedAgent::MbedAgent(DeviceIO& io, MDMSerial& mdm, DeviceInfo& deviceInfo, DeviceMemory& deviceMemory) :
     _io(io),
@@ -25,41 +26,37 @@
 {
     bool flag = true;
     if (!_integration.init()) {
-        puts("Init Device Integration failed.");
+        aWarning("Init Device Integration failed.\r\n");
         flag = false;
     }
     if (!_configurationSynchronization.init()) {
-        puts("Init Configuration Synchronization failed.");
+        aWarning("Init Configuration Synchronization failed.\r\n");
         flag = false;
     }
     if (!_signalQualityMeasurement.init()) {
-        puts("Init Signal Quality Measurement failed.");
+        aWarning("Init Signal Quality Measurement failed.\r\n");
         flag = false;
     }
     if (!_temperatureMeasurement.init()) {
-        puts("Init Temperature Measurement failed.");
+        aWarning("Init Temperature Measurement failed.\r\n");
         flag = false;
     }
     if (!_accelerationMeasurement.init()) {
-        puts("Init Acceleration Measurement failed.");
+        aWarning("Init Acceleration Measurement failed.\r\n");
         flag = false;
     }
     if (!_analogMeasurement.init()) {
-        puts("Init Analog Measurement failed.");
+        aWarning("Init Analog Measurement failed.\r\n");
         flag = false;
     }
     if (!_locationUpdate.init()) {
-        puts("Init Location Measurement failed.");
+        aWarning("Init Location Measurement failed.\r\n");
         flag = false;
     }
     if (!_operationSupport.init()) {
-        puts("Init Operation Support failed.");
+        aWarning("Init Operation Support failed.\r\n");
         flag = false;
     }
-    if (flag)
-        puts("T");
-    else
-        puts("F");
     return flag;
 }