mqtt specific components for the impact mbed endpoint library

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp

Revision:
28:6cdbaf2aa697
Parent:
27:bb4253d9f1d0
Child:
29:ac6390032cec
diff -r bb4253d9f1d0 -r 6cdbaf2aa697 MBEDEndpoint.cpp
--- a/MBEDEndpoint.cpp	Thu Apr 03 00:50:43 2014 +0000
+++ b/MBEDEndpoint.cpp	Thu Apr 03 01:55:19 2014 +0000
@@ -46,6 +46,10 @@
      for(int i=0;i<NUM_TRANSPORTS;++i) this->m_transports[i] = NULL;
      this->logger()->setEndpoint((void *)this);
      this->setEndpoint(new IOCEndpoint(error_handler,(void *)this));
+#ifdef CELLULAR_NETWORK
+     extern int getUbloxConnectStatus();
+     if (getUbloxConnectStatus() != 0) success = false;
+#endif
      if (success) this->initPreferences();
      if (success) this->initEndpointName();
      if (success) this->logger()->turnLEDBlue();