BLEGATT API : enable notifications of a BLE keyboard

I’m trying to use BLEGATT API to connect to a keyboard from the app instead of using the TV settings. Currently I’m able to connect and pair to the device. But all the keyboard buttons are not working (notification supposely not enabled). I tried to enable the HID report notifications, I can see in the logs that the API " client/setCharacteristicNotification" returnValue = true, but in the BLE sniffer I don’t see any write request to enable notification in the peer device.

How can I enable HID report notification, or how can I inform the system that is a keyboard to attach, so the system enables all necessary notifications for the keyboard ?

Note: When I connect the keyboard using the TV settings it works file.

Thank you in advance.

Does it work if you connect the Bluetooth keyboard to the TV using the TV Settings menu?

Yes if I connect using the TV settings it works. But I found what was missing. When it is a new pairing, normally the server has notifications disables and wait that the client enable them. What I noticed, is that “client/setCharacteristicNotification” is to enable/disable notification locally not in the peer device. To enable the notification in the peer device (server) I should write on the CCCD.

Thanks.

Have you solved the issue above? You can refer to client/writeDescriptor to set the corresponding value in CCCD to receive or reject notification. Thank you.