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:
149:7fde829ed672
Parent:
148:0b7e6632acbe
Child:
150:b898b05e9e23
--- a/main.cpp	Wed Apr 02 04:38:41 2014 +0000
+++ b/main.cpp	Wed Apr 02 05:14:56 2014 +0000
@@ -32,7 +32,7 @@
  
  #ifdef _ENDPOINT_UBLOX_PLATFORM
      // Serial Console Support
-     Serial pc(USBTX, USBRX);
+     //Serial pc(USBTX, USBRX);
      
      // LCD Support
      #include "C12832.h"
@@ -87,7 +87,9 @@
          delete endpoint;
      }
      if (error_handler != NULL) delete error_handler;
+#ifndef _ENDPOINT_UBLOX_PLATFORM
      pc.printf("Exiting...\r\n");
+#endif
      lcd.cls();
      lcd.locate(0,0);
      lcd.printf("Endpoint Shutdown %s",strCode(code));
@@ -120,7 +122,11 @@
     memset(fmt_mac,0,RESOURCE_VALUE_LEN+1);
     sprintf(fmt_mac,"%02x:%02x:%02x:%02x:%02x:%02x",mac[0],mac[1],mac[2],mac[3],mac[4],mac[5]);
 #endif
+#ifdef _ENDPOINT_UBLOX_PLATFORM
+    error_handler = new ErrorHandler(NULL,&lcd);
+#else 
     error_handler = new ErrorHandler(&pc,&lcd);
+#endif
 #ifndef CELLULAR_NETWORK
     endpoint = new MBEDEndpoint(error_handler,&ethernet,NULL);
 #else