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:
67:c360a2b2c948
Parent:
55:a0f7295ed6b6
Child:
92:48069375dffa
--- a/DeviceBootstrap.h	Thu Oct 30 14:46:22 2014 +0000
+++ b/DeviceBootstrap.h	Sun Nov 30 19:34:49 2014 +0000
@@ -2,8 +2,8 @@
 #define DEVICEBOOTSTRAP_H
 
 #include <stddef.h>
-#include "MDM.h"
 #include "DeviceIO.h"
+#include "DeviceMemory.h"
 #include "AbstractSmartRest.h"
 #include "DeviceInfo.h"
 
@@ -15,12 +15,10 @@
 
 #define DEVICE_BOOTSTRAP_CREDENTIALS_LENGTH 256
 
-#define CREDENTIALS_FILE "001_CREDENTIALS"
-
 class DeviceBootstrap
 {
 public:
-    DeviceBootstrap(AbstractSmartRest&, MDMSerial&, DeviceIO&, DeviceInfo&);
+    DeviceBootstrap(AbstractSmartRest&, DeviceIO&, DeviceInfo&, DeviceMemory&);
     
     bool setUpCredentials();
     const char * username();
@@ -36,8 +34,8 @@
 
 private:
     AbstractSmartRest& _client;
-    MDMSerial& _mdm;
     DeviceInfo& _deviceInfo;
+    DeviceMemory& _deviceMemory;
     DeviceIO& _io;
     char _username[DEVICE_BOOTSTRAP_CREDENTIALS_LENGTH],                    
          _password[DEVICE_BOOTSTRAP_CREDENTIALS_LENGTH];