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

List adapters and specify which adapter to use? #1585

Open
EdwardDeaver opened this issue Jun 1, 2024 · 2 comments
Open

List adapters and specify which adapter to use? #1585

EdwardDeaver opened this issue Jun 1, 2024 · 2 comments
Labels
Backend: BlueZ Issues and PRs relating to the BlueZ backend Documentation Issues or PRs relating to RTD or documentation

Comments

@EdwardDeaver
Copy link

  • bleak version: Latest
  • Python version: 3.10
  • Operating System: Linux
  • BlueZ version (bluetoothctl -v) in case of Linux:

Description

I can not tell how to connect to one adapter when you have multiple and list the devices that the adapter sees.

What I Did

Read the docs but I don't see how you can set the deviceID to use. And even how to get that devicesID.

@dlech
Copy link
Collaborator

dlech commented Jun 1, 2024

There currently isn't a way to list adapters.

On Linux, you can add an adapter="hci1" keyword argument to BleakScanner and BleakClient.

@dlech dlech added Backend: BlueZ Issues and PRs relating to the BlueZ backend Documentation Issues or PRs relating to RTD or documentation labels Jun 1, 2024
@koenvervloesem
Copy link
Contributor

To list the available Bluetooth adapters on your system, you can use the bluetooth-adapters package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend: BlueZ Issues and PRs relating to the BlueZ backend Documentation Issues or PRs relating to RTD or documentation
Projects
None yet
Development

No branches or pull requests

3 participants