mbed Connector Interface simplification API on top of mbed-client

Fork of mbedConnectorInterfaceV3 by Doug Anson

NOTE:

This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!

Revision:
118:bee40e9f18ff
Parent:
91:179b5cb420de
diff -r f8103c66474a -r bee40e9f18ff source/DynamicResource.cpp
--- a/source/DynamicResource.cpp	Wed May 10 17:23:08 2017 +0000
+++ b/source/DynamicResource.cpp	Wed May 24 16:40:49 2017 +0000
@@ -202,12 +202,12 @@
 	    	String object_name = param->get_argument_object_name();
 	    	int instance_id = (int)param->get_argument_object_instance_id();
 	    	String resource_name = param->get_argument_resource_name();
-	    	value = this->coapDataToString(param->get_argument_value(),param->get_argument_value_length());
+	    	value = this->coapDataToString((uint8_t *)param->get_argument_value(),param->get_argument_value_length());
 	    	this->logger()->log("%s: post(%d) [%s/%d/%s]=[%s]) called.",this->m_res_type.c_str(),type,object_name.c_str(),instance_id,resource_name.c_str(),value.c_str());
 	    }
 	    else {
 	    	// use the resource value itself
-			value = this->coapDataToString(this->m_res->value(),this->m_res->value_length());
+			value = this->coapDataToString((uint8_t *)this->m_res->value(),this->m_res->value_length());
 	 		this->logger()->log("%s: post(%d) [%s]=[%s] called.",this->m_res_type.c_str(),type,this->getFullName().c_str(),value.c_str());
      	}
      	
@@ -223,7 +223,7 @@
 	     	this->post(args);
      	}
      	else {
-     		string value = this->coapDataToString(this->m_res->value(),this->m_res->value_length());
+     		string value = this->coapDataToString((uint8_t *)this->m_res->value(),this->m_res->value_length());
 		 	this->logger()->log("%s: post(%d) [%s]=[%s] called.",this->m_res_type.c_str(),type,this->getFullName().c_str(),value.c_str());
 	     	this->post((void *)value.c_str());
      	}
@@ -239,12 +239,12 @@
 	    	String object_name = param->get_argument_object_name();
 	    	int instance_id = (int)param->get_argument_object_instance_id();
 	    	String resource_name = param->get_argument_resource_name();
-	    	string value = this->coapDataToString(param->get_argument_value(),param->get_argument_value_length());
+	    	string value = this->coapDataToString((uint8_t *)param->get_argument_value(),param->get_argument_value_length());
 	    	this->logger()->log("%s: delete(%d) [%s/%d/%s]=[%s]) called.",this->m_res_type.c_str(),type,object_name.c_str(),instance_id,resource_name.c_str(),value.c_str());
 	    }
 	    else {
 	    	// use the resource value itself
-			string value = this->coapDataToString(this->m_res->value(),this->m_res->value_length());
+			string value = this->coapDataToString((uint8_t *)this->m_res->value(),this->m_res->value_length());
 	 		this->logger()->log("%s: delete(%d) [%s]=[%s] called.",this->m_res_type.c_str(),type,this->getFullName().c_str(),value.c_str());
      	}
      	
@@ -260,7 +260,7 @@
 	     	this->del(args);
      	}
      	else {
-     		string value = this->coapDataToString(this->m_res->value(),this->m_res->value_length());
+     		string value = this->coapDataToString((uint8_t *)this->m_res->value(),this->m_res->value_length());
 		 	this->logger()->log("%s: delete(%d) [%s]=[%s] called.",this->m_res_type.c_str(),type,this->getFullName().c_str(),value.c_str());
 	     	this->del((void *)value.c_str());
      	}