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:
50:38cd1b5f1cde
--- a/EmulatedResourceFactory.cpp	Fri Mar 28 16:50:02 2014 +0000
+++ b/EmulatedResourceFactory.cpp	Fri Mar 28 17:49:19 2014 +0000
@@ -34,7 +34,7 @@
  void EmulatedResourceFactory::createResource(char *name,char *value) { ResourceFactory::createResource(name,value); }
  void EmulatedResourceFactory::createResource(char *ep_name,char *name,char *value,void *cb) { ResourceFactory::createResource(ep_name,name,value,cb); }
  void EmulatedResourceFactory::createResource(char *name,char *value,void *io,void *notused) {
-     MBEDEndpoint *endpoint = (MBEDEndpoint *)this->m_endpoint;
+     MBEDEndpoint *endpoint = (MBEDEndpoint *)this->getEndpoint();
      char *ep_name = NULL; if (endpoint != NULL) ep_name = endpoint->getEndpointName();
      this->m_list[this->m_count] = new Resource(this->logger(),ep_name,name,value,NULL);
      if (io != NULL && this->m_list[this->m_count] != NULL) {