-
What's the easiest API to use to emulate an HID device? e.g. I'd like my library running on a Linux box to emulate a Bluetooth keyboard. Should I be using GATT? Maximum compatibility would be nice, but modern smartphone devices can be assumed to be my target devices, so ease of implementation is preferred. |
Beta Was this translation helpful? Give feedback.
Answered by
surban
Sep 11, 2023
Replies: 1 comment 3 replies
-
If your target device, i.e. the device connecting to your emulated keyboard, supports HID over Bluetooth Low Energy, you should implement https://www.bluetooth.com/specifications/specs/human-interface-device-service-1-0/ . |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would recommend that you start with the GATT server example and modify it to implement the minimum required services and characteristics defined by the Bluetooth HID specification. For that you will also need to take a look at the USB HID specification, as it defines the actual HID events and commands.