Added
AdvertisementData
class now has an attributetx_power
. Merged #987.
Changed
BleakClient
methods now raiseBleakError
if called when not connected in WinRT backend. Merged #973.- Extended disconnect timeout to 120 seconds in WinRT backend. Fixes #807.
- Changed version check for BlueZ battery workaround to exclude versions >= 5.55. Merged #976.
- Use Poetry for build system and dependencies. Merged #978.
- The BlueZ D-Bus backend implements a services cache between connections to significancy improve reconnect performance.
To use the cache, callconnect
andget_services
with thedangerous_use_bleak_cache
argument to avoid services being resolved again. Merged #923. - The BlueZ D-Bus backend now uses
dbus-fast
package instead ofdbus-next
which significantly improves performance. Merged #988. - The BlueZ D-Bus backend will not avoid trying to connect to devices that are already connected. Fixes #992.
- Updated logging to lazy version and replaced format by f-string for BleakClientWinRT. #1000.
- Added deprecation warning to
discover()
method. Merged #1005. - BlueZ adapter is chosen dynamically if not provided, instead of using hardcoded "hci0". Fixes #513.
Fixed
- Fixed wrong error message for BlueZ "Operation failed with ATT error". Merged #975.
- Fixed possible
AttributeError
when enabling notifications for battery service in BlueZ backend. Merged #976. - Fixed use of wrong enum in unpair function of WinRT backend. Merged #986.
- Fixed inconsistent return types for
properties
anddescriptors
properties ofBleakGATTCharacteristic
. Merged #989. - Handle device being removed before
GetManagedObjects
returns in BlueZ backend. Fixes #996. - Fixed crash in
max_pdu_size_changed_handler
in WinRT backend. Fixes #998. - Fixes a race in the BlueZ D-Bus backend where the disconnect monitor would be removed before it could be awaited. Merged #999.
Removed
- Removed
BLEDeviceCoreBluetooth
type from CoreBluetooth backend. Merged #977.