We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f631751 commit 9603702Copy full SHA for 9603702
public/GattCharacteristic.h
@@ -330,6 +330,16 @@ class GattCharacteristic : public GattAttribute
330
uint8_t getProperties(void) const {
331
return _properties;
332
}
333
+ uint8_t getDescriptorCount(void) const {
334
+ return _descriptorCount;
335
+ }
336
+ GattAttribute *getDescriptor(uint8_t index) {
337
+ if (index >= _descriptorCount) {
338
+ return NULL;
339
340
+
341
+ return _descriptors[index];
342
343
344
private:
345
uint8_t _properties;
public/GattServer.h
@@ -110,6 +110,7 @@ class GattServer
110
protected:
111
uint8_t serviceCount;
112
uint8_t characteristicCount;
113
+ uint8_t descriptorCount;
114
115
116
ServerEventCallback_t onDataSent;
0 commit comments