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

Revision:
13:9edad7677211
Parent:
0:1f1f55e73248
Child:
16:dffa38c3340f
--- a/source/TickerResourceObserver.cpp	Thu Mar 10 16:02:04 2016 +0000
+++ b/source/TickerResourceObserver.cpp	Wed Jun 08 22:32:08 2016 +0000
@@ -40,7 +40,7 @@
 
  // notifier
  void TickerResourceObserver::observationNotifier() {
-     if (this->isObserving() == true && this->getResource() != NULL) {
+     if (this->isObserving() == true && this->getResource() != NULL && this->getResource()->isConnected() == true) {
          //
          // implementsObservation(): This switch denotes whether this ticker resource generates its own observations or relies on the ticker (time-based) mechanism.
          //   -- if resource itself doesn't implement it, then we can call notify() with the get() on each heartbeat of the tickered resource (see note below)