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:
101:dbcd3bc51758
Parent:
98:9f2de96941c4
Child:
110:b7a403dbceb6
diff -r 47ea098f8a47 -r dbcd3bc51758 DeviceBootstrap.h
--- a/DeviceBootstrap.h	Thu May 07 13:56:19 2015 +0000
+++ b/DeviceBootstrap.h	Fri May 08 12:19:57 2015 +0000
@@ -5,13 +5,7 @@
 #include "AbstractSmartRest.h"
 #include "DeviceInfo.h"
 
-/** The username used for device bootstrapping. */
-#define DEVICE_BOOTSTRAP_USERNAME "management/devicebootstrap"
-
-/** The password used for device bootstrapping. */
-#define DEVICE_BOOTSTRAP_PASSWORD "Fhdt1bb1f"
-
-#define DEVICE_BOOTSTRAP_CREDENTIALS_LENGTH 256
+#define CREDENTIAL_LENGTH 256
 
 class DeviceBootstrap
 {
@@ -33,8 +27,8 @@
 private:
     AbstractSmartRest& _client;
     DeviceInfo& _deviceInfo;
-    char _username[DEVICE_BOOTSTRAP_CREDENTIALS_LENGTH];
-    char _password[DEVICE_BOOTSTRAP_CREDENTIALS_LENGTH];
+    char _username[CREDENTIAL_LENGTH];
+    char _password[CREDENTIAL_LENGTH];
 };
 
 #endif
\ No newline at end of file