Skip to content

Commit 75c95bb

Browse files
committed
Fix notify keyboard input report
1 parent abef134 commit 75c95bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hid_services.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
F_READ_WRITE = bluetooth.FLAG_READ | bluetooth.FLAG_WRITE
2828
F_READ_NOTIFY = bluetooth.FLAG_READ | bluetooth.FLAG_NOTIFY
2929
F_READ_WRITE_NORESPONSE = bluetooth.FLAG_READ | bluetooth.FLAG_WRITE | bluetooth.FLAG_WRITE_NO_RESPONSE
30+
F_READ_WRITE_NOTIFY_NORESPONSE = bluetooth.FLAG_READ | bluetooth.FLAG_WRITE | bluetooth.FLAG_NOTIFY | bluetooth.FLAG_WRITE_NO_RESPONSE
3031

3132
DSC_F_READ = 0x02
3233
DSC_F_WRITE = 0x03
@@ -901,7 +902,7 @@ def __init__(self, name="Bluetooth Keyboard"):
901902
(UUID(0x2A4D), F_READ_NOTIFY, ( # 0x2A4D = HID report, to be read by client after notification.
902903
(UUID(0x2908), DSC_F_READ), # 0x2908 = HID reference, to be read by client.
903904
)),
904-
(UUID(0x2A4D), F_READ_WRITE, ( # 0x2A4D = HID report
905+
(UUID(0x2A4D), F_READ_WRITE_NOTIFY_NORESPONSE, ( # 0x2A4D = HID report
905906
(UUID(0x2908), DSC_F_READ), # 0x2908 = HID reference, to be read by client.
906907
)),
907908
(UUID(0x2A4E), F_READ_WRITE_NORESPONSE), # 0x2A4E = HID protocol mode, to be written & read by client.

0 commit comments

Comments
 (0)