Connect to specific bluetooth device [Kotlin]
I'm, quite new to this ble stuff, I found this piece of code that shows a list of ble devices. However I'm trying to make it so that it connects to a specific device. Any guesses on what kind of options I have?
private fun onBluetoothEnabled() {
val bondedDevices = bluetoothAdapter?.bondedDevices
if (bondedDevices != null) {
val bondedAdapter =
ArrayAdapter(
this,
android.R.layout.simple_spinner_item,...