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:
- 59:c58774344049
- Parent:
- 58:1552dd51615b
- Child:
- 60:76728655fa12
--- a/Resource.cpp Mon Mar 03 00:51:41 2014 +0000 +++ b/Resource.cpp Mon Mar 03 00:56:27 2014 +0000 @@ -79,6 +79,7 @@ // extract the resource value void Resource::extract(char *name) { if (this->m_io != NULL) { + this->logger()->log("EXTRACT: Invoking MBEDio UPDATE for Name: %s Value: %s",this->m_name,this->m_value); MBEDio *io = (MBEDio *)this->m_io; io->update(); } @@ -88,7 +89,10 @@ char *Resource::getEndpointName() { return this->m_endpoint_name; } // set the base I/O - void Resource::setIO(void *io) { this->m_io = io; } + void Resource::setIO(void *io) { + this->logger()->log("SET: MBEDio SET for Name: %s Value: %s",this->m_name,this->m_value); + this->m_io = io; + } // set the internal resource linkage void Resource::setCallbackPointer(void *cb) { this->m_cb = cb; }