Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Revision:
8:940c782eec5e
Parent:
7:f77afd49c35d
Child:
12:beb64aa0da86
--- a/main.cpp	Wed Feb 12 11:25:26 2014 +0000
+++ b/main.cpp	Wed Feb 12 12:13:36 2014 +0000
@@ -25,17 +25,20 @@
         return 2;
     }
     
-    // get before starting program
-    imei();
-    cellId();
+    // get before starting program as they're permanent
+    imei(); iccid();
 
     puts("Starting program...");    
-    ret = program();
+    
+    // restart program upon failure
+    do {
+        ret = program();
+    } while (ret);
 
     modem.disconnect();
     c027.mdmPower(false);
     
-    return ret;
+    return 0;
 }
 
 const char * imei()