Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Revision:
97:9f2de96941c4
Parent:
96:ea056f6be2e8
Child:
98:e369fc75c000
--- a/main.cpp	Mon Apr 27 13:02:50 2015 +0000
+++ b/main.cpp	Mon Apr 27 13:30:21 2015 +0000
@@ -73,12 +73,11 @@
     joystickUp.rise(&enableDebug);
     joystickDown.rise(&disableDebug);
 
-    DeviceMemory deviceMemory;
     DigitalIn fireButton(D4);
 
     if (fireButton) {
         LCDDisplay::inst().setLines("Factory Reset");
-        if (deviceMemory.resetPlatformCredentials()) {
+        if (resetPlatformCredentials()) {
             LCDDisplay::inst().setLines("Reset Success");
         } else {
             LCDDisplay::inst().setLines("Reset Failure");
@@ -116,7 +115,7 @@
 
     {
         DeviceInfo deviceInfo(devStatus);
-        MbedAgent agent(gps, deviceInfo, deviceMemory);
+        MbedAgent agent(gps, deviceInfo);
 
         LCDDisplay::inst().setLines("Agent Init");
         if (!agent.init()) {