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:
11:9ae0fe4517c1
Parent:
5:1ba6e68bf50e
Child:
14:717372430717
--- a/EmulatedLightResourceFactory.cpp	Fri Mar 28 16:50:02 2014 +0000
+++ b/EmulatedLightResourceFactory.cpp	Fri Mar 28 17:49:19 2014 +0000
@@ -74,7 +74,7 @@
  // initialize our GPS coords
  void EmulatedLightResourceFactory::initGPSCoords() {
      memset(this->m_gps_coords,0,PREFERENCE_VALUE_LEN+1);
-     MBEDEndpoint *endpoint = (MBEDEndpoint *)this->m_endpoint;
+     MBEDEndpoint *endpoint = (MBEDEndpoint *)this->getEndpoint();
      endpoint->preferences()->getPreference("coords",this->m_gps_coords,PREFERENCE_VALUE_LEN,ENDPOINT_GPS_COORDS);
  }