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: Resource.cpp
- Revision:
- 48:43fa2a43b114
- Parent:
- 47:fa96ddc36f04
- Child:
- 51:73e837ee5aa6
--- a/Resource.cpp Sat Mar 01 17:01:46 2014 +0000 +++ b/Resource.cpp Sat Mar 01 17:06:56 2014 +0000 @@ -49,7 +49,7 @@ void Resource::setValue(char *value) { if (value != NULL) strncpy(this->m_value,value,this->min(RESOURCE_VALUE_LEN,strlen(value))); } // plumb the resource (base class does nothing other than save the endpoint_name) - void Resource::plumb(char *endpoint_name,char *name) { if (endpint_name != NULL) strncpy(this->m_endpoint_name,endpoint_name,this->min(LIGHT_NAME_LEN,strlen(endpoint_name))); } + void Resource::plumb(char *endpoint_name,char *name) { if (endpoint_name != NULL) strncpy(this->m_endpoint_name,endpoint_name,this->min(LIGHT_NAME_LEN,strlen(endpoint_name))); } // extract the resource value void Resource::extract(char *name) {