b3b / able

Python for Android Bluetooth Low Energy package
MIT License
38 stars 18 forks source link

Add connect by mac address or through java class bluetoothdevice #14

Closed dgatf closed 1 year ago

dgatf commented 4 years ago

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

b3b commented 4 years ago

Thanks for interesting ideas. Indeed,sometimes scanning is redundant. I'll see what could be done.

b3b commented 3 years ago

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