endpoint C207 radio support
Dependents: mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular
Diff: MBEDUbloxCellRadio.h
- Revision:
- 20:9572d860cb54
- Parent:
- 16:19f597d8048f
- Child:
- 21:05af8f1a4303
--- a/MBEDUbloxCellRadio.h Tue Jul 01 20:13:19 2014 +0000 +++ b/MBEDUbloxCellRadio.h Thu Jul 03 18:35:54 2014 +0000 @@ -19,7 +19,10 @@ #ifndef _MBED_UBLOX_CELL_RADIO_H_ #define _MBED_UBLOX_CELL_RADIO_H_ - #include "mbed.h" + // BaseClass support + #include "BaseClass.h" + + // Cellular support #include "MDM.h" // SIM settings @@ -27,14 +30,15 @@ #define APN "phone" #define USERNAME NULL #define PASSWORD NULL - - // BaseClass support - #include "BaseClass.h" class MBEDUbloxCellRadio : public BaseClass { private: - MDMSerial *m_modem; - bool m_connected; + #ifdef NSP_CELLULAR_NETWORK + MDMRtos<MDMSerial> *m_modem; + #else + MDMSerial *m_modem; + #endif + bool m_connected; public: MBEDUbloxCellRadio(ErrorHandler *error_handler,void *endpoint,void *modem);