Hey,
I'm using your library and it's working very well, good work!!!
But for WearOS I've got problems with bonding the Smartwatch to other devices.
I call your function connect and receive a onBondingSucceeded callback.
I check that bonding with this function:
fun isDeviceBonded(peripheralAddress: String): Boolean { val bluetoothManager = context.getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager return bluetoothManager.adapter.bondedDevices.map { it.address }.contains(peripheralAddress) }
But I've got always false, because the BluetoothManager Adapter bonded devices List not included the expceted peripherialAddress I've created a workaround, which open the Android Bluetooth settings and connect to the device manually before I call this function, This return true and I can you use your library as expected.
But this helps not for all devices. Have you a idea or other experiences with WearOS?
Hey, I'm using your library and it's working very well, good work!!! But for WearOS I've got problems with bonding the Smartwatch to other devices. I call your function connect and receive a onBondingSucceeded callback. I check that bonding with this function:
fun isDeviceBonded(peripheralAddress: String): Boolean { val bluetoothManager = context.getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager return bluetoothManager.adapter.bondedDevices.map { it.address }.contains(peripheralAddress) }
But I've got always false, because the BluetoothManager Adapter bonded devices List not included the expceted peripherialAddress I've created a workaround, which open the Android Bluetooth settings and connect to the device manually before I call this function, This return true and I can you use your library as expected. But this helps not for all devices. Have you a idea or other experiences with WearOS?