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
Revision 114:f1ede142a78f, committed 2014-08-28
- Comitter:
- carlescufi
- Date:
- Thu Aug 28 15:50:29 2014 +0200
- Parent:
- 113:7e3fd573d87b
- Child:
- 115:47e4cdd7b0c5
- Commit message:
- Add support for adding descriptors
Changed in this revision
| public/GattCharacteristic.h | Show annotated file Show diff for this revision Revisions of this file |
| public/GattServer.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
--- a/public/GattServer.h Thu Aug 28 14:17:34 2014 +0200
+++ b/public/GattServer.h Thu Aug 28 15:50:29 2014 +0200
@@ -110,6 +110,7 @@
protected:
uint8_t serviceCount;
uint8_t characteristicCount;
+ uint8_t descriptorCount;
private:
ServerEventCallback_t onDataSent;
