Added
- Added
AdvertisementDataclass used with detection callbacks across all supported platforms. Merged #334. - Added
BleakErrorraised during import on unsupported platforms. - Added
rssiparameter toBLEDeviceconstructor. - Added
detection_callbackkwarg toBleakScannerconstructor.
Changed
- Updated minimum PyObjC version to 7.0.1.
- Consolidated implementation of
BleakScanner.register_detection_callback(). All platforms now take callback withBLEDeviceandAdvertisementDataarguments. - Consolidated
BleakScanner.find_device_by_address()implementations. - Renamed
devicekwarg toadapterinBleakClientandBleakScanner. Fixes #381.
Fixed
- Fixed use of bare exceptions.
- Fixed
BleakClientBlueZDBus.start_notify()misses initial notifications with fast Bluetooth devices. Fixed #374. - Fix event callbacks on Windows not running in asyncio event loop thread.
- Fixed
BleakScanner.discover()on older versions of macOS. Fixes #331. - Fixed disconnect callback on BlueZ backend.
- Fixed calling
BleakClient.is_connected()on Mac before connection. - Fixed kwargs ignored in
BleakScanner.find_device_by_address()in BlueZ backend. Fixes #360.
Removed
- Removed duplicate definition of
BLEDevicein BlueZ backend. - Removed unused imports.
- Removed separate implementation of global
discovermethod.