Skip to content

Selecting the PC Bluetooth peripheral #123

Answered by vladak
alessandrotoniolo asked this question in Q&A
Discussion options

You must be logged in to vote

On Linux at least, when the name of the adapter is not specified, hci0 will be used:

adapter_path: str = await find_adapter(
bus, adapter if adapter is not None else "hci0"
)

One can specify the controller by setting the adapter parameter of the BlessServer initializer, e.g.:

server = BlessServer(name=my_service_name, loop=loop, adapter="hci1")

The list of adapters you can get via the hcitool dev command.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@alessandrotoniolo
Comment options

Answer selected by alessandrotoniolo
Comment options

You must be logged in to vote
1 reply
@alessandrotoniolo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants