bluekitchen / btstack

Dual-mode Bluetooth stack, with small memory footprint.
http://bluekitchen-gmbh.com
Other
1.74k stars 618 forks source link

Receiving HID output reports from host #547

Closed fullmetalfelix closed 1 year ago

fullmetalfelix commented 1 year ago

I have managed to setup a PiZero as HID (classic) bluetooth joystick and now would like to add force-feedback. I have read this is possible with output reports that are sent by the host. However, I cannot find a way to have my program receive them. Is there a specific event to look for in the packet handler? Or a specific callback to register like hid_device_register_report_data_callback? Is there any example of HID device using this?

Thanks for helping.

mringwal commented 1 year ago

You should get output reports via the callback set by hid_device_register_set_report_callback().

Please post user questions on the BTstack mailing list. This is not a stack issue.