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:
67:c360a2b2c948
Child:
68:0dc778a16d0d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/io/DeviceMemory.h	Sun Nov 30 19:34:49 2014 +0000
@@ -0,0 +1,28 @@
+#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();
+    
+private:
+    MDMSerial& _mdm;
+};
+
+#endif
\ No newline at end of file