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

Committer:
vwochnik
Date:
Sat Dec 06 19:47:23 2014 +0000
Revision:
68:0dc778a16d0d
Parent:
67:c360a2b2c948
Child:
97:ea056f6be2e8
configuration for interval

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vwochnik 67:c360a2b2c948 1 #ifndef DEVICEMEMORY_H
vwochnik 67:c360a2b2c948 2 #define DEVICEMEMORY_H
vwochnik 67:c360a2b2c948 3
vwochnik 67:c360a2b2c948 4 #include <stddef.h>
vwochnik 67:c360a2b2c948 5 #include "MDM.h"
vwochnik 67:c360a2b2c948 6
vwochnik 67:c360a2b2c948 7 /**
vwochnik 67:c360a2b2c948 8 * Device Memory storage handler
vwochnik 67:c360a2b2c948 9 */
vwochnik 67:c360a2b2c948 10 class DeviceMemory
vwochnik 67:c360a2b2c948 11 {
vwochnik 67:c360a2b2c948 12 public:
vwochnik 67:c360a2b2c948 13 DeviceMemory(MDMSerial&);
vwochnik 67:c360a2b2c948 14
vwochnik 67:c360a2b2c948 15 /** loads credentials from persistent memory */
vwochnik 67:c360a2b2c948 16 bool loadPlatformCredentials(char*, char*, size_t);
vwochnik 67:c360a2b2c948 17
vwochnik 67:c360a2b2c948 18 /** saves credentials to persistent memory */
vwochnik 67:c360a2b2c948 19 bool savePlatformCredentials(char*, char*, size_t);
vwochnik 67:c360a2b2c948 20
vwochnik 67:c360a2b2c948 21 /** removes credentials from persistent memory */
vwochnik 67:c360a2b2c948 22 bool resetPlatformCredentials();
vwochnik 67:c360a2b2c948 23
vwochnik 68:0dc778a16d0d 24 /** loads configuration from persistent memory */
vwochnik 68:0dc778a16d0d 25 bool loadConfiguration(char*, size_t);
vwochnik 68:0dc778a16d0d 26
vwochnik 68:0dc778a16d0d 27 /** saves configuration to persistent memory */
vwochnik 68:0dc778a16d0d 28 bool saveConfiguration(char*);
vwochnik 68:0dc778a16d0d 29
vwochnik 68:0dc778a16d0d 30 /** removes configuration from persistent memory */
vwochnik 68:0dc778a16d0d 31 bool resetConfiguration();
vwochnik 68:0dc778a16d0d 32
vwochnik 67:c360a2b2c948 33 private:
vwochnik 67:c360a2b2c948 34 MDMSerial& _mdm;
vwochnik 67:c360a2b2c948 35 };
vwochnik 67:c360a2b2c948 36
vwochnik 67:c360a2b2c948 37 #endif