abc
Fork of BLE_API by
Diff: public/GattCharacteristic.h
- Revision:
- 229:6664b6c0e92b
- Parent:
- 144:c025c8839682
- Child:
- 247:0aa24096bec1
--- a/public/GattCharacteristic.h Wed Dec 03 14:38:40 2014 +0000 +++ b/public/GattCharacteristic.h Wed Dec 03 14:38:40 2014 +0000 @@ -324,9 +324,11 @@ } public: - GattAttribute& getValueAttribute() {return _valueAttribute; } - uint8_t getProperties(void) const {return _properties; } - uint8_t getDescriptorCount(void) const {return _descriptorCount;} + GattAttribute& getValueAttribute() {return _valueAttribute; } + const GattAttribute& getValueAttribute() const {return _valueAttribute; } + GattAttribute::Handle_t getValueHandle(void) const {return getValueAttribute().getHandle();} + uint8_t getProperties(void) const {return _properties; } + uint8_t getDescriptorCount(void) const {return _descriptorCount;} GattAttribute *getDescriptor(uint8_t index) { if (index >= _descriptorCount) {