Add support for adding descriptors
parent
f63175122a
commit
9603702120
|
@ -330,6 +330,16 @@ public:
|
|||
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;
|
||||
|
|
|
@ -110,6 +110,7 @@ protected:
|
|||
protected:
|
||||
uint8_t serviceCount;
|
||||
uint8_t characteristicCount;
|
||||
uint8_t descriptorCount;
|
||||
|
||||
private:
|
||||
ServerEventCallback_t onDataSent;
|
||||
|
|
Loading…
Reference in New Issue