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/ResourceObserver.cpp
- Revision:
- 54:dfee8691c83a
- Parent:
- 33:1d0b855df5a5
--- a/source/ResourceObserver.cpp Mon Aug 08 19:02:00 2016 +0000 +++ b/source/ResourceObserver.cpp Tue Aug 09 17:18:49 2016 +0000 @@ -57,3 +57,15 @@ int ResourceObserver::getSleepTime() { return this->m_sleep_time; } + + // halt the underlying observer mechanism + void ResourceObserver::halt() { + } + + // get our logger instance + Logger *ResourceObserver::logger() { + if (this->m_resource != NULL) { + return this->m_resource->logger(); + } + return NULL; + }