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:
- 60:76728655fa12
- Parent:
- 59:c58774344049
- Child:
- 125:979332edc1c2
--- a/Resource.cpp Mon Mar 03 00:56:27 2014 +0000 +++ b/Resource.cpp Mon Mar 03 03:32:42 2014 +0000 @@ -51,7 +51,7 @@ // get the value of the resource char *Resource::getValue() { this->extract(this->getName()); return this->getValuePointer(); } char *Resource::getValuePointer() { - this->logger()->log("GET: Name: %s Value: %s",this->m_name,this->m_value); + //this->logger()->log("GET: Name: %s Value: %s",this->m_name,this->m_value); return this->m_value; } @@ -61,14 +61,13 @@ if (value != NULL && length > 0) { memset(this->m_value,0,RESOURCE_VALUE_LEN+1); strncpy(this->m_value,value,this->min(RESOURCE_VALUE_LEN,length)); - this->logger()->log("SET: Name: %s Value: %s",this->m_name,this->m_value); + //this->logger()->log("SET: Name: %s Value: %s",this->m_name,this->m_value); } } // plumb the resource (base class does nothing other than save the endpoint_name) void Resource::plumb(char *ep_name,char *name) { - // DEBUG - this->logger()->log("Plumbing Resource - Endpoint: %s Resource: %s",ep_name,name); + //this->logger()->log("Plumbing Resource - Endpoint: %s Resource: %s",ep_name,name); memset(this->m_endpoint_name,0,LIGHT_NAME_LEN+1); if (ep_name != NULL) { memset(this->m_endpoint_name,0,LIGHT_NAME_LEN+1); @@ -79,7 +78,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); + //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(); } @@ -90,7 +89,7 @@ // set the base I/O void Resource::setIO(void *io) { - this->logger()->log("SET: MBEDio SET for Name: %s Value: %s",this->m_name,this->m_value); + //this->logger()->log("SET: MBEDio SET for Name: %s Value: %s",this->m_name,this->m_value); this->m_io = io; }