bleak icon indicating copy to clipboard operation
bleak copied to clipboard

List adapters and specify which adapter to use?

Open EdwardDeaver opened this issue 1 year ago • 4 comments

  • 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.

EdwardDeaver avatar Jun 01 '24 01:06 EdwardDeaver

There currently isn't a way to list adapters.

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

dlech avatar Jun 01 '24 16:06 dlech

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

koenvervloesem avatar Jun 02 '24 12:06 koenvervloesem

How does bleak handle the adapter=hci1 argument in different OS's? Is it just ignored, or will it cause trouble?

roethigj avatar Feb 25 '25 10:02 roethigj

I'm pretty sure it is just ignored.

dlech avatar Feb 25 '25 15:02 dlech