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
io/DeviceMemory.h
- Committer:
- vwochnik
- Date:
- 2014-12-06
- Revision:
- 68:0dc778a16d0d
- Parent:
- 67:c360a2b2c948
- Child:
- 97:ea056f6be2e8
File content as of revision 68:0dc778a16d0d:
#ifndef DEVICEMEMORY_H #define DEVICEMEMORY_H #include <stddef.h> #include "MDM.h" /** * Device Memory storage handler */ class DeviceMemory { public: DeviceMemory(MDMSerial&); /** loads credentials from persistent memory */ bool loadPlatformCredentials(char*, char*, size_t); /** saves credentials to persistent memory */ bool savePlatformCredentials(char*, char*, size_t); /** removes credentials from persistent memory */ bool resetPlatformCredentials(); /** loads configuration from persistent memory */ bool loadConfiguration(char*, size_t); /** saves configuration to persistent memory */ bool saveConfiguration(char*); /** removes configuration from persistent memory */ bool resetConfiguration(); private: MDMSerial& _mdm; }; #endif