Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: main.cpp
- Revision:
- 96:ea056f6be2e8
- Parent:
- 95:5dfdc8568e9f
- Child:
- 97:9f2de96941c4
--- a/main.cpp Mon Apr 27 10:50:21 2015 +0000 +++ b/main.cpp Mon Apr 27 13:02:50 2015 +0000 @@ -23,7 +23,8 @@ //#define SIM_APN "" //#define SIM_USER "" //#define SIM_PASS "" -MDMRtos<MDMSerial> *pMdm = NULL; +//MDMRtos<MDMSerial> *pMdm; +MDMSerial* pMdm; unsigned short getMNCLen(const char *imsi) { @@ -72,7 +73,7 @@ joystickUp.rise(&enableDebug); joystickDown.rise(&disableDebug); - DeviceMemory deviceMemory(mdm); + DeviceMemory deviceMemory; DigitalIn fireButton(D4); if (fireButton) { @@ -114,8 +115,8 @@ } { - DeviceInfo deviceInfo(mdm, devStatus); - MbedAgent agent(gps, mdm, deviceInfo, deviceMemory); + DeviceInfo deviceInfo(devStatus); + MbedAgent agent(gps, deviceInfo, deviceMemory); LCDDisplay::inst().setLines("Agent Init"); if (!agent.init()) {