SmartREST client reference implementation for the u-blox C027 mbed compatible device.
Dependencies: C027 C027_Support mbed mbed-rtos MbedSmartRest LM75B MMA7660 C12832
Fork of MbedSmartRestTest by
Diff: main.cpp
- Revision:
- 30:daa499571db7
- Parent:
- 29:853741b9ea3b
- Child:
- 32:56804dd00193
--- a/main.cpp Mon May 26 08:10:27 2014 +0000 +++ b/main.cpp Mon May 26 08:12:14 2014 +0000 @@ -17,9 +17,9 @@ io_init(); puts("IO initialized."); + c027.mdmPower(true); c027.mdmWakeup(); c027.mdmReset(); - c027.mdmPower(true); Thread::wait(2000); puts("Initializing modem."); @@ -77,6 +77,7 @@ puts("Restarting program..."); } while (ret); + mdm.disconnect(); c027.mdmPower(false); return 0;