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: mbed-connector-interface/MinarResourceObserver.h
- Revision:
- 54:dfee8691c83a
- Parent:
- 33:1d0b855df5a5
- Child:
- 122:4072e03884e4
--- a/mbed-connector-interface/MinarResourceObserver.h Mon Aug 08 19:02:00 2016 +0000 +++ b/mbed-connector-interface/MinarResourceObserver.h Tue Aug 09 17:18:49 2016 +0000 @@ -47,7 +47,7 @@ @param resource input the resource to observe @param sleep_time input the time for the observation thread to sleep (in ms) */ - MinarResourceObserver(DynamicResource *resource,int sleep_time = OBS_PERIOD_MS); + MinarResourceObserver(DynamicResource *resource,int sleep_time = DEFAULT_OBS_PERIOD); /** Destructor @@ -68,6 +68,11 @@ perform the observation (iteration) */ void perform_observation(); + + /** + halt the underlying observer mechanism + */ + virtual void halt(); private: