Added
- Added new
assigned_numbersmodule andAdvertisementDataTypeenum. - Added new
bluezkwarg toBleakScannerin BlueZ backend. - Added support for passive scanning in the BlueZ backend. Fixes #606.
- Added option to use cached services, characteristics and descriptors in WinRT backend. Fixes #686.
- Added
PendingDeprecationWarningto use ofaddress_typeas keyword argument. It will be moved into the
winrtkeyword instead according to #623. - Added better error message when adapter is not present in BlueZ backend. Fixes #889.
Changed
- Add
py.typedfile so mypy discovers Bleak's type annotations. - UUID descriptions updated to 2022-03-16 assigned numbers document.
- Replace use of deprecated
asyncio.get_event_loop()in Android backend. - Adjust default timeout for
read_gatt_char()with CoreBluetooth to 10s. Merged #891. BleakScanner()argsdetection_callbackandservice_uuidsare no longer keyword-only.BleakScanner()argscanning_modeis no longer Windows-only and is no longer keyword-only.- All
BleakScanner()instances in BlueZ backend now use common D-Bus object manager. - Deprecated
filterskwarg inBleakScannerin BlueZ backend. - BlueZ version is now checked on first connection instead of import to avoid import side effects. Merged #907.
Fixed
- Documentation fixes.
- On empty characteristic description from WinRT, use the lookup table instead of returning empty string.
- Fixed detection of first advertisement in BlueZ backend. Merged #903.
- Fixed performance issues in BlueZ backend caused by calling "GetManagedObjects" each time a
BleakScannerscans orBleakClientis connected. Fixes #500. - Fixed not handling "InterfacesRemoved" in
BleakClientin BlueZ backend. Fixes #882. - Fixed leaking D-Bus socket file descriptors in BlueZ backend. Fixes #805.