Michael Koster / mbedConnectorInterface

Fork of mbedConnectorInterface by Doug Anson

Revision:
31:bacc63106754
Parent:
30:113c2a1d8db2
--- a/api/DynamicResource.h	Tue Apr 07 21:30:03 2015 +0000
+++ b/api/DynamicResource.h	Wed Apr 08 15:49:56 2015 +0000
@@ -133,6 +133,12 @@
     bool isObservable() { return this->m_observable; }
     
     /**
+    Set the observer pointer
+    @param observer input the pointer to the ResourceObserver observing this resource
+    */
+    void setObserver(void *observer);
+    
+    /**
     Set the data wrapper
     @param data_wrapper input the data wrapper instance
     */
@@ -156,6 +162,7 @@
     uint8_t          *m_obs_token_ptr;
     uint8_t           m_obs_token_len;
     DataWrapper      *m_data_wrapper;
+    void             *m_observer;
 
     // convenience method to create a string from the NSDL CoAP data buffers...
     string coapDataToString(uint8_t *coap_data_ptr,int coap_data_ptr_length);