mbed Connector Endpoint interface. This interface permits a mbed endpoint to easily setup MDS resources and emit those resources to an MDS server.

Dependents:   IoT_LED_demo ServoTest uWater_Project hackathon ... more

Revision:
5:a929d65eb385
Parent:
2:853f9ecc12df
--- a/api/InstancePointerTable.cpp	Wed Jan 28 12:11:22 2015 +0000
+++ b/api/InstancePointerTable.cpp	Wed Jan 28 14:43:46 2015 +0000
@@ -40,7 +40,6 @@
     int index = this->indexFromKey(key);
     if (index >= 0) {
         // overwrite the existing reference we have...
-        std::printf("InstancePointerTable: ADD(overwrite) instance: key[%s] index=%d\r\n",key.c_str(),index);
         this->m_instance_pointer_table[index].instance = instance;
     } else {
         // get the next empty slot
@@ -49,10 +48,9 @@
             // set the table entry
             this->m_instance_pointer_table[index].key = key;
             this->m_instance_pointer_table[index].instance = instance;
-            std::printf("InstancePointerTable: ADD instance: key[%s] index=%d\r\n",key.c_str(),index);
         } else {
             // table is FULL!  Error...
-            std::printf("ERROR: InstancePointerTable is FULL... please expand table\r\n");
+            this->logger()->log("ERROR: InstancePointerTable is FULL... please expand table");
         }
     }
 }
@@ -63,7 +61,6 @@
     // get our index
     int index = this->indexFromKey(key);
     if (index >= 0) {
-        std::printf("InstancePointerTable: GET instance: key[%s] index=%d\r\n",key.c_str(),index);
         return this->m_instance_pointer_table[index].instance;
     }
     return NULL;