Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: ResourceFactory.cpp
- Revision:
- 42:ff05e71c4cb5
- Parent:
- 40:eae89a487d86
- Child:
- 47:fa96ddc36f04
--- a/ResourceFactory.cpp Sat Mar 01 07:18:40 2014 +0000 +++ b/ResourceFactory.cpp Sat Mar 01 07:43:09 2014 +0000 @@ -47,7 +47,8 @@ // create a resource value void ResourceFactory::createResource(char *name,char *value) { MBEDEndpoint *endpoint = (MBEDEndpoint *)this->m_endpoint; - this->createResource(endpoint->getEndpointName(),name,value,NULL); + char *ep_name = NULL; if (endpoint != NULL) ep_name = endpoint->getEndpointName(); + this->createResource(ep_name,name,value,NULL); } void ResourceFactory::createResource(char *endpoint_name,char *name,char *value,void *cb) {