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

Dynamically select default adapter #513

Closed
lopsided98 opened this issue Apr 15, 2021 · 0 comments · Fixed by #524
Closed

Dynamically select default adapter #513

lopsided98 opened this issue Apr 15, 2021 · 0 comments · Fixed by #524
Labels
Backend: BlueZ Issues and PRs relating to the BlueZ backend enhancement New feature or request

Comments

@lopsided98
Copy link

  • bleak version: 0.11.0
  • Python version: 3.8.8
  • Operating System: Linux
  • BlueZ version (bluetoothctl -v) in case of Linux: 5.57

Description

If not specified, the adapter name on Linux currently defaults to hci0. Not all Linux systems have an hci0 adapter (on one of mine, the only adapter is hci1). It would be useful to have a way to dynamically select the default adapter name from those actually available on the system, rather than hardcoding it. In 0.10.0, this was actually possible by passing adapter=None to BleakScanner, but I suspect this feature might have been unintentional. The relevant code was removed in the switch from txdbus to dbus-next.

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 enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants