Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbedConnectorInterface by
Diff: api/DynamicResource.h
- 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);