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:
- 147:f370b21f696e
- Parent:
- 139:89cd0657b3c3
- Child:
- 148:0b7e6632acbe
--- a/main.cpp Wed Apr 02 01:50:02 2014 +0000 +++ b/main.cpp Wed Apr 02 04:35:30 2014 +0000 @@ -107,6 +107,10 @@ // Main Entry int main() { +#ifdef CELLULAR_NETWORK + C027 c027; + UBLOX_MODEM modem(NC,true,1); +#endif #ifdef NETWORK_MUTEX network_mutex = new Mutex(); if (network_mutex != NULL) network_mutex->unlock(); @@ -120,7 +124,7 @@ #ifndef CELLULAR_NETWORK endpoint = new MBEDEndpoint(error_handler,ðernet); #else - endpoint = new MBEDEndpoint(error_handler,NULL); + endpoint = new MBEDEndpoint(error_handler,&modem,&c027); #endif if (endpoint != NULL) endpoint->run(); }