0
votes

I need to pair two BLE devices(one device is android phone [central app - discovers services] and other devices BLE [peripherals - advertise the services] support hardware) with secure passkey method in android. I googled it but no luck, I got no references about secure pairing in BLE android.

I have developed an Android Application in phone - connection, bonding is working fine but not able to find out how to do PASSKEY pairing.

I have found some links in internet regards this but in BLUETOOTH not in BLE devices. Any suggestions?

1

1 Answers

0
votes

This is all handled by the Bluetooth stack when you bond.

Per the Bluetooth specification, the security level chosen will always be the highest one supported by both devices. So just make sure the peripheral supports the desired level and Android will use that (since Android supports all security levels). There is no API in Android to select a lower level.