custom for >5 resources

Fork of mbedConnectorInterface by Doug Anson

Revision:
5:a929d65eb385
Parent:
2:853f9ecc12df
Child:
24:a6915e19814e
--- a/api/StaticResource.cpp	Wed Jan 28 12:11:22 2015 +0000
+++ b/api/StaticResource.cpp	Wed Jan 28 14:43:46 2015 +0000
@@ -55,14 +55,13 @@
 {
     if (p != NULL) {
         sn_nsdl_resource_info_s *resource_ptr = (sn_nsdl_resource_info_s *)p;
-        std::printf("StaticResource: name[%s] value:[%s]\r\n",this->getName().c_str(),this->getValue().c_str());
         const uint8_t *name = (const uint8_t *)(this->getName().c_str());
         const uint8_t *value = (const uint8_t *)(this->getValue().c_str());
         int name_length = this->getName().size();
         int value_length = this->getValue().size();
         nsdl_create_static_resource(resource_ptr,name_length,(uint8_t *)name,0,0,(uint8_t *)value,value_length);
-        std::printf("StaticResource[%s(%d)] value: %s(%d) bound\r\n",name,name_length,value,value_length);
+        this->logger()->log("StaticResource: [%s] value: [%s] bound",name,value);
     } else {
-        std::printf("StaticResource: NULL parameter in bind()\r\n");
+        this->logger()->log("StaticResource: NULL parameter in bind()");
     }
 }