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.
Dependents: IoT_LED_demo ServoTest uWater_Project hackathon ... more
Diff: api/DynamicResource.h
- Revision:
- 23:caa0260acc21
- Parent:
- 21:8487990a3baa
- Child:
- 24:a6915e19814e
diff -r 192b598ba389 -r caa0260acc21 api/DynamicResource.h --- a/api/DynamicResource.h Fri Mar 13 06:22:41 2015 +0000 +++ b/api/DynamicResource.h Thu Mar 19 04:05:08 2015 +0000 @@ -123,6 +123,12 @@ */ int notify(const string data); + /** + Determine whether this dynamic resource is observable or not + @returns true - is observable, false - otherwise + */ + bool isObservable() { return this->m_observable; } + protected: int notify(uint8_t *data,int data_length);