Added
- Added
AdvertisementData
class used with detection callbacks across all supported platforms. Merged #334. - Added
BleakError
raised during import on unsupported platforms. - Added
rssi
parameter toBLEDevice
constructor. - Added
detection_callback
kwarg toBleakScanner
constructor.
Changed
- Updated minimum PyObjC version to 7.0.1.
- Consolidated implementation of
BleakScanner.register_detection_callback()
. All platforms now take callback withBLEDevice
andAdvertisementData
arguments. - Consolidated
BleakScanner.find_device_by_address()
implementations. - Renamed
device
kwarg toadapter
inBleakClient
andBleakScanner
. 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
BLEDevice
in BlueZ backend. - Removed unused imports.
- Removed separate implementation of global
discover
method.