mbedConnectorInterface back port from mbedOS v3 using mbed-client C++ call interface

Revision:
17:defb680f8fce
Parent:
10:3f79b5e67c22
Child:
22:68fcdc40b397
--- a/source/OptionsBuilder.cpp	Fri Jun 10 18:53:01 2016 +0000
+++ b/source/OptionsBuilder.cpp	Fri Jun 10 19:22:26 2016 +0000
@@ -168,6 +168,7 @@
     if (resource != NULL) {
         this->m_dynamic_resources.push_back((DynamicResource *)resource);
         ((DynamicResource *)resource)->setOptions(this);
+        ((DynamicResource *)resource)->setEndpoint((const void *)this->getEndpoint());
         if (((DynamicResource *)resource)->isObservable() == true && use_observer == true) {
 #ifdef CONNECTOR_USING_THREADS
             ThreadedResourceObserver *observer = new ThreadedResourceObserver((DynamicResource *)resource,(int)sleep_time);