You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a feature request to add a new BleakAdapter class to provide access to the system Bluetooth adapter.
This class should have a property for getting the adapter state (powered on, powered off, not present, not authorized) and allow registering a callback for when the adapter state changes. This could fix #320.
It could also have a method to get already connected Bluetooth devices. This could fix #367.
Additionally, it could provide an eaiser way to specify which adapter to use on Linux (instead of passing the adapter arg to each BleakScanner and BleakClient).
Creation of this object will necessarily be async due to the OS APIs that would need to be used, so this should have an async default_adapter() class (or static) method to get the adapter (currently all OSes other than Linux only allow one Bluetooth adapter) instead of an __init__ method.
The text was updated successfully, but these errors were encountered:
This is a feature request to add a new
BleakAdapter
class to provide access to the system Bluetooth adapter.This class should have a property for getting the adapter state (powered on, powered off, not present, not authorized) and allow registering a callback for when the adapter state changes. This could fix #320.
It could also have a method to get already connected Bluetooth devices. This could fix #367.
Additionally, it could provide an eaiser way to specify which adapter to use on Linux (instead of passing the adapter arg to each BleakScanner and BleakClient).
Creation of this object will necessarily be async due to the OS APIs that would need to be used, so this should have an async
default_adapter()
class (or static) method to get the adapter (currently all OSes other than Linux only allow one Bluetooth adapter) instead of an__init__
method.The text was updated successfully, but these errors were encountered: