added max-age and content-format

Fork of mbedConnectorInterface by Doug Anson

Revision:
36:1c6c45584c13
Parent:
31:bacc63106754
Child:
43:769d491a48c1
--- a/api/ThreadedResourceObserver.cpp	Wed Apr 08 23:03:39 2015 +0000
+++ b/api/ThreadedResourceObserver.cpp	Thu Apr 09 03:32:11 2015 +0000
@@ -45,7 +45,7 @@
      ThreadedResourceObserver *me = (ThreadedResourceObserver *)instance;
      while(true) {
          Thread::wait(me->getSleepTime());
-         if (me->isObserving() == true && me->getResource() != NULL) {
+         if (me->isObserving() == true && me->getResource() != NULL && nsdl_endpoint_is_registered() == true) {
              me->getResource()->observe();
          }
      }