Target nRF52832(nrf52dk_nrf52832)
SDK NCS v1.9.1
Base source
1. C:\Users\user\ncs\v1.9.1\nrf\samples\bluetooth\peripheral_hids_keyboard
2. C:\Users\user\ncs\v1.9.1\nrf\samples\bluetooth\peripheral_uart
My project require two mode(HID and NUS).
I made new project that support two mode.(User can select mode, and each mode will begin at boot time).
Steps.
1) If a Android device( was connected as HID role.
2) Reboot BLE. BLE started with NUS. BLE is waiting NUS client.
3) Android device try to connect BLE again automatically. It connected as HID.
To avoid this, I have to turn off BT. My client have lots of devices & Androids, and use them at the same time.
So I need to prepare solution not to have this situation.
Question.
I want to detect if connected device is using HID. so that I can disconnect HID connection manually, then can wait new connection as NUS.
Do you have any good idea?