Closed emanuellopes closed 8 months ago
In HOGS, the Central device, here macOS or Android, connects to the keyboard. If you disconnect the keyboard, the remote generally tries to reconnect. Feel free to file a bug report with Android as that's the least expected.
If you don't want your keyboard to be connected, you can disable advertisements when you disconnect (which is basically the same as shutting it off...)
Describe the bug I'm using the example hog_keyboard in Android works as expected but in Mac OS the ble device is always reconnecting.
To allow me debugging the code I separated two handlers sm and packet.
To Reproduce
Steps to reproduce the behavior: Compile the code and try disconnect mac from BLE device. The mac will reconnect to the device. (This not happens in Android phone)
Expected behavior The beahaviour should be equal on every device.
Debugging code
For example the first connection I receive:
When I disconnect the device I receive this:
In android the HIDS_SUBEVENT_BOOT_KEYBOARD_INPUT_REPORT_ENABLE is triggered.
This is related with services?
How I can avoid the reconnection in MAC?