mbed Connector Interface simplification API on top of mbed-client
Fork of mbedConnectorInterfaceV3 by
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!
Diff: source/OptionsBuilder.cpp
- 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);