NordicSemiconductor / pc-ble-driver-py

Python bindings for the ble-driver library
Other
126 stars 115 forks source link

ble_adapter: Fix LE Secure Connections pairing #201

Closed mkarhumaa closed 2 years ago

mkarhumaa commented 3 years ago

When pc-ble-driver-py was used on central side for initiating LE Secure Connections pairing against peripheral which does not support LE SC, pairing timed out because pc-ble-driver-py was waiting for event gap_evt_lesc_dhkey_request.

Fix is to expect BLEEvtID.gap_evt_lesc_dhkey_request only when both of the devices support LE Secure Connections.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

jupe commented 2 years ago

@jornbh could you review this as well. We would need this patch.

jornbh commented 2 years ago

Now, the tests have passed.