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:
72:c5709ae7b193
Parent:
71:063c45e99578
Child:
77:f6717e4eccc4
--- a/DeviceBootstrap.cpp	Mon Feb 16 09:17:30 2015 +0000
+++ b/DeviceBootstrap.cpp	Mon Feb 16 13:15:52 2015 +0000
@@ -7,6 +7,7 @@
 #include "CharValue.h"
 #include "IntegerValue.h"
 #include "ParsedRecord.h"
+#include "logging.h"
 
 DeviceBootstrap::DeviceBootstrap(AbstractSmartRest& client, DeviceIO& io, DeviceInfo& deviceInfo, DeviceMemory& deviceMemory) :
     _client(client),
@@ -24,7 +25,7 @@
         if (!obtainFromPlatform())
             return false;
         if (!writeToStorage())
-            puts("Warning: Could not write credentials to file!");
+            aWarning("Could not write credentials to file!");
     }
 
     if (_client.setAuthorization(_username, _password) != SMARTREST_SUCCESS)
@@ -82,7 +83,7 @@
         _client.stop();
         
         for (size_t q = 0; q < recvdRecord.values(); q++)
-            puts(recvdRecord.rawValue(q));
+            aDebug(recvdRecord.rawValue(q));
             
         if ((recvdRecord.values() < 1) ||
             (recvdRecord.value(0).integerValue() == 50)) {