最近,我做了一个HID项目,发现其他蓝牙设备可以根据连接的主机是IOS还是Android发送不同的报告描述符。
最近,我做了一个HID项目,发现其他蓝牙设备可以根据连接的主机是IOS还是Android发送不同的报告描述符。
I know how to solve this problem
I need to define two HID services. I don't know whether nrf52,840 supports this operation
Hi
You can create as many service as you like in the nRF52840, you will only be limited by the available memory.
Are you planning to use the nRF5 SDK or the nRF Connect SDK for developing the firmware?
Best regards
Torbjørn
I want to perform the function of initializing the service after the connection is successful. I don't know whether the nRF5 SDK and nRF Connect SDK support it
Hi
In the nRF5 SDK you can add services dynamically, but you can not remove them without doing a full reset of the nRF device.
In the nRF Connect SDK you can both add and remove services dynamically, as long as you enable the BT_GATT_DYNAMIC_DB configuration.
Then you can use the bt_gatt_service_register/unregister functions to enable and disable different services.
Best regards
Torbjørn