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 BLE_API by
Diff: public/GattCharacteristic.h
- Revision:
- 114:f1ede142a78f
- Parent:
- 113:7e3fd573d87b
- Child:
- 115:47e4cdd7b0c5
--- a/public/GattCharacteristic.h Thu Aug 28 14:17:34 2014 +0200
+++ b/public/GattCharacteristic.h Thu Aug 28 15:50:29 2014 +0200
@@ -330,6 +330,16 @@
uint8_t getProperties(void) const {
return _properties;
}
+ uint8_t getDescriptorCount(void) const {
+ return _descriptorCount;
+ }
+ GattAttribute *getDescriptor(uint8_t index) {
+ if (index >= _descriptorCount) {
+ return NULL;
+ }
+
+ return _descriptors[index];
+ }
private:
uint8_t _properties;
