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:
110:b7a403dbceb6
Parent:
105:fd3571349e5d
Child:
113:3872569be2af
diff -r 2ec12f10ebf4 -r b7a403dbceb6 DeviceBootstrap.cpp
--- a/DeviceBootstrap.cpp	Wed May 13 13:54:17 2015 +0000
+++ b/DeviceBootstrap.cpp	Wed May 13 15:00:24 2015 +0000
@@ -28,13 +28,6 @@
 
 bool DeviceBootstrap::setUpCredentials()
 {
-//    if ((*_username == '\0' || *_password == '\0') &&
-//        (!obtainFromStorage())) {
-//        if (!obtainFromPlatform())
-//            return false;
-//        if (!writeToStorage())
-//            aError("Can not write credentials!\n");
-//    }
     if (loadCredential(_username, _password, CREDENTIAL_LENGTH)) {
         return true;
     } else if (obtainFromPlatform()) {
@@ -46,21 +39,6 @@
     }
 }
 
-const char * DeviceBootstrap::username()
-{
-    return _username;
-}
-
-const char * DeviceBootstrap::password()
-{
-    return _password;
-}
-
-bool DeviceBootstrap::obtainFromStorage()
-{
-    return loadCredential(_username, _password, CREDENTIAL_LENGTH);
-}
-
 bool DeviceBootstrap::obtainFromPlatform()
 {
     ComposedRecord record;
@@ -111,11 +89,6 @@
     return false;
 }
 
-bool DeviceBootstrap::writeToStorage()
-{
-    return saveCredential(_username, _password, CREDENTIAL_LENGTH);
-}
-
 void DeviceBootstrap::setCredentials(const char *tenant, const char *username, const char *password)
 {
     *_username = '\0';