How to cause an Android Peripheral to initiate pairing a Bluetooth Low Energy connection?

250 Views Asked by At

When developing an Android app that acts in the Peripheral role, how can the app initiate pairing / the connection to be bonded? (e.g. in the Central role can call createBond())

1

There are 1 best solutions below

0
On

Connect from the BluetoothGattServer to a BluetoothDevice:

server.connect(device,false)