Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
14:d4f8ab1e199a
Parent:
10:62107616fc6c
Child:
21:cfdaee0a2b50
--- a/ResourceFactory.cpp	Tue Feb 25 17:12:34 2014 +0000
+++ b/ResourceFactory.cpp	Tue Feb 25 18:08:58 2014 +0000
@@ -52,6 +52,7 @@
         if (strcmp(this->m_list[i].getName(),name) == 0) {
             found = true;
             value = this->m_list[i].getValue();
+            this->logger()->log("Getting Resource: %s Value: %s",name,value);
         }
     }
     
@@ -66,6 +67,7 @@
     for(int i=0;i<this->m_list.size() && !found;++i) {
         if (strcmp(this->m_list[i].getName(),name) == 0) {
             found = true;
+            this->logger()->log("Setting Resource: %s Value: %s",name,value);
             this->m_list[i].setValue(value);
         }
     }