hbldh / bleak

A cross platform Bluetooth Low Energy Client for Python using asyncio
MIT License
1.74k stars 292 forks source link

List adapters and specify which adapter to use? #1585

Open EdwardDeaver opened 3 months ago

EdwardDeaver commented 3 months ago

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 commented 3 months ago

There currently isn't a way to list adapters.

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

koenvervloesem commented 3 months ago

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