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
Diff: DeviceBootstrap.h
- Revision:
- 113:3872569be2af
- Parent:
- 110:b7a403dbceb6
- Child:
- 117:5de54f09f754
--- a/DeviceBootstrap.h Fri May 15 10:14:05 2015 +0000 +++ b/DeviceBootstrap.h Fri May 15 14:07:51 2015 +0000 @@ -5,28 +5,19 @@ #include "AbstractSmartRest.h" #include "DeviceInfo.h" -#define CREDENTIAL_LENGTH 256 class DeviceBootstrap { public: DeviceBootstrap(AbstractSmartRest&, DeviceInfo&); - - bool setUpCredentials(); - const char* username() const { return _username; } - const char* password() const { return _password; } + bool bootstrap(); protected: bool obtainFromPlatform(); private: - void setCredentials(const char *, const char*, const char*); - -private: AbstractSmartRest& _client; DeviceInfo& _deviceInfo; - char _username[CREDENTIAL_LENGTH]; - char _password[CREDENTIAL_LENGTH]; }; #endif \ No newline at end of file