Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
138:19502bc20369
Parent:
137:adc39c42b169
Child:
139:89cd0657b3c3
--- a/main.cpp	Mon Mar 31 05:45:51 2014 +0000
+++ b/main.cpp	Mon Mar 31 18:47:11 2014 +0000
@@ -21,8 +21,10 @@
  #include <string.h>
  #include <stdlib.h>
  
- // Ethernet Interface
- EthernetInterface ethernet;
+ #ifndef CELLULAR_NETWORK
+    // Ethernet Interface
+    EthernetInterface ethernet;
+ #endif
   
  // Mutex for the network as RTOS doesnt play well with threads...
  Mutex *network_mutex = NULL;
@@ -114,6 +116,10 @@
     sprintf(fmt_mac,"%02x:%02x:%02x:%02x:%02x:%02x",mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]);
 #endif
     error_handler = new ErrorHandler(&pc,&lcd);
+#ifndef CELLULAR_NETWORK
     endpoint = new MBEDEndpoint(error_handler,&ethernet);
+#else
+    endpoint = new MBEDEndpoint(error_handler,NULL);
+#endif
     if (endpoint != NULL) endpoint->run();
  }