mbed 5.4 with sleep mode
Dependencies: C027_Support mbed-dev
Fork of C027_SupportTest_coap by
Diff: main.cpp
- Revision:
- 20:52f0e5de8c3d
- Parent:
- 19:f022ff746eb8
- Child:
- 21:a090a5043e23
diff -r f022ff746eb8 -r 52f0e5de8c3d main.cpp --- a/main.cpp Tue May 27 09:20:46 2014 +0000 +++ b/main.cpp Wed May 28 09:21:55 2014 +0000 @@ -55,12 +55,8 @@ bool mdmOk = mdm.init(SIMPIN, &devStatus); mdm.dumpDevStatus(&devStatus); if (mdmOk) { - // wait until we are connected - mdmOk = mdm.registerNet(&netStatus); - mdm.dumpNetStatus(&netStatus); - } - if (mdmOk) - { +#if 0 + // file system API const char* filename = "File"; char buf[] = "Hello World"; printf("writeFile \"%s\"\r\n", buf); @@ -72,7 +68,14 @@ printf("readFile %d \"%.*s\"\r\n", len, len, buf); mdm.delFile(filename); } - +#endif + + // wait until we are connected + mdmOk = mdm.registerNet(&netStatus); + mdm.dumpNetStatus(&netStatus); + } + if (mdmOk) + { // http://www.geckobeach.com/cellular/secrets/gsmcodes.php // http://de.wikipedia.org/wiki/USSD-Codes const char* ussd = "*130#"; // You may get answer "UNKNOWN APPLICATION"