Closed dgatf closed 1 year ago
Thanks for interesting ideas. Indeed,sometimes scanning is redundant. I'll see what could be done.
Currently, it is possible to use library to get a list of paired devices, and to connect to device by a MAC address. Usage example: https://herethere.me/pythonhere/examples/ble.html#get-list-of-paired-ble-devices
This is not an issue but a request
Please add a function to connect to a device by the mac address or though the java class bluetoothdevice that can be obtained from the paired devices list:
autoclass('android.bluetooth.BluetoothAdapter').getDefaultAdapter().getBondedDevices().toArray()
Use case: not always is desired to scan devices, but quickly connect through the mac address or java class bluetoothdevice from paired devices list
Thanks