Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: main.cpp
- Revision:
- 166:8e63cd2c003a
- Parent:
- 165:cee5b7891267
- Child:
- 174:e8f11d1b5e3f
--- a/main.cpp Thu Jul 03 18:00:16 2014 +0000 +++ b/main.cpp Thu Jul 03 18:35:47 2014 +0000 @@ -23,6 +23,10 @@ #ifdef CELLULAR_NETWORK // MDMSerial + #ifdef NSP_CELLULAR_NETWORK + #include "mbed.h" + #include "rtos.h" + #endif #include "MDM.h" // GPSParser @@ -133,7 +137,11 @@ #endif error_handler = new ErrorHandler(&pc,&lcd); #ifdef CELLULAR_NETWORK - MDMSerial modem; + #ifdef NSP_CELLULAR_NETWORK + MDMRtos<MDMSerial> modem; + #else + MDMSerial modem; + #endif endpoint = new MBEDEndpoint(error_handler,&modem,NULL); #else endpoint = new MBEDEndpoint(error_handler,ðernet,NULL);