weliem / bluez_inc

A C library for Bluez (BLE) that hides all DBus communication. It doesn't get easier than this. This library can also be used in C++.
MIT License
86 stars 21 forks source link

Unable to enter pairing key #56

Closed Srikor closed 2 weeks ago

Srikor commented 2 weeks ago

Hello, I'm trying to pair one of my BLE devices which require to enter a pairing key to get paired. I see that the library has method _binc_agent_set_request_passkeycb that get called in case pairing key is requested by the BLE device. But on connection this callback method is not getting called and hence I'm not able to enter the pairing key. Hence, the connection gets timed out.

Srikor commented 2 weeks ago

Sorry, have to take my post back. Seems I don't get the callback if I bond the device. I set up the code not to bond with the devices and now I get the prompt to enter the code.