Bluetooth Low Energy: listening for notifications/indications on Raspberry Pi B+

戏子无情 提交于 2019-12-08 09:36:48

问题


How is it possible to authenticate using Bluez 5.31 and GattTool?

I want to listen on a notification.

I've connected using gatttool -b <addr> -I and I can run the primary command etc.

I sniffed the device and I know that handle 0x0024 is where I will find a notification.

When I try char-write-req 0x0024 0100 I get Error: Characteristic write Request failed: Attribute requires authentication before read/write

So I try sec-level medium and then sec-level high but I still get the same error.

Any ideas?

来源:https://stackoverflow.com/questions/30896386/bluetooth-low-energy-listening-for-notifications-indications-on-raspberry-pi-b

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!