Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dgatf opened this issue Apr 9, 2020 · 2 comments
Closed

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

dgatf opened this issue Apr 9, 2020 · 2 comments

Comments

@dgatf
Copy link

dgatf commented Apr 9, 2020

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
Copy link
Owner

b3b commented Apr 11, 2020

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

@b3b
Copy link
Owner

b3b commented Feb 5, 2021

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

@b3b b3b added the enhancement label Jan 1, 2023
@b3b b3b closed this as completed Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants