use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
Diff: mbed-connector-interface/MinarResourceObserver.h
- Revision:
- 54:dfee8691c83a
- Parent:
- 33:1d0b855df5a5
--- 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: