labapart / gattlib

Library to access GATT information from BLE (Bluetooth Low Energy) devices
http://labapart.com/
454 stars 160 forks source link

Indications translated as notifications problem. #225

Open erdem-kose opened 3 years ago

erdem-kose commented 3 years ago

If my device sends notifications, gattlib cannot catch but if my device sends indications, gattlib catches them as notifications It's completely weird.

but probably you sent CCCD 0200 instead 0100 for indication, 0100 instead 0200 for notification.

lm339-gj commented 3 years ago

你的问题解决了吗? 如果没有,你可以尝试注释掉 /dbus/gattlib_notification.c 函数 tatic gboolean on_handle_characteristic_property_change 里的gfree(key)。