Simulated device authentication and pairing with Android emulator #705
-
|
I created a simulated device by modifying run_gatt_server.py and have it working with an app running on the Android emulator. I have a characteristic that I would like to require authentication and encryption by pairing using a fixed pin, similar to the following. I am at a loss about how to proceed. |
Beta Was this translation helpful? Give feedback.
Answered by
barbibulle
Jun 6, 2025
Replies: 1 comment 15 replies
-
|
If I understand correctly, do you want to make your own pairing process over GATT, instead of general Bluetooth pairing? |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since one of the goals of Bumble is to make it easier for developers to simulate all sorts of Bluetooth devices, I think it makes sense to support a mode where the pairing is done with a key supplied by the pairing delegate (it is via the delegate mechanism that all pairing customization happens) rather than a random source (and that's also more flexible than hard-coding a fixed pin, since with a delegate you could decide to have a fixed PIN that depends on the peer, or other context).
I'll send a PR shortly with support for that.