Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/hci-socket/gatt.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,15 @@ class Gatt extends EventEmitter {

for (let k = 0; k < characteristic.descriptors.length; k++) {
const descriptor = characteristic.descriptors[k];

//https://github.com/abandonware/bleno/issues/51
//above, if the characteristic defines notify, the 2902 characteristic descriptor is added automatically
//if the peripheral also declares this, we don't want to add it again
//flags (properties, secure etc) above are better defined
if(descriptor.uuid == '2902')
{
continue;
}

handle++;
const descriptorHandle = handle;
Expand Down
Loading