我正在使用BlueZ库gatttool,但是当我运行下面提到的gatttool命令时,它会给我无尽的通知。是否有任何方法,它只发出一次通知,然后退出命令?
命令:
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100 –listen;产出如下:
Characteristic value/descriptor: 00
Characteristic value/descriptor: 01
Characteristic value was written successfully
Notification handle = 0x002d value: 01 06 40
Notification handle = 0x002d value: 01 05 40
Notification handle = 0x002d value: 01 06 40
Notification handle = 0x002d value: 01 06 44
Notification handle = 0x002d value: 01 05 41
Notification handle = 0x002d value: 01 06 41
....endless notifications..... I just need once 发布于 2015-11-23 01:07:00
只需在没有--listen选项的情况下运行它。
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100https://askubuntu.com/questions/616743
复制相似问题