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

211 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 answers

0
Roberto Betancourt On

Connect from the BluetoothGattServer to a BluetoothDevice:

server.connect(device,false)