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:
- 43:361a61395588
- Parent:
- 42:ff05e71c4cb5
- Child:
- 47:fa96ddc36f04
--- a/Resource.cpp Sat Mar 01 07:43:09 2014 +0000 +++ b/Resource.cpp Sat Mar 01 08:21:12 2014 +0000 @@ -44,6 +44,7 @@ // get and set the value of the resource char *Resource::getValue() { this->extract(this->getName()); return this->m_value; } + char *Resource::getValuePointer() { return this->m_value; } void Resource::setValue(char *value) { 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)