Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027 C027_Support mbed mbed-rtos MbedSmartRest LM75B MMA7660 C12832
Fork of MbedSmartRestTest by
Diff: main.cpp
- 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()
