Bleak

Latest version: v0.22.1

Safety actively analyzes 629723 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 9

0.15.0

======================

Added
-----

* Added new ``assigned_numbers`` module and ``AdvertisementDataType`` enum.
* Added new ``bluez`` kwarg to ``BleakScanner`` in 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 ``PendingDeprecationWarning`` to use of ``address_type`` as keyword argument. It will be moved into the
``winrt`` keyword instead according to 623.
* Added better error message when adapter is not present in BlueZ backend. Fixes 889.

Changed
-------

* Add ``py.typed`` file 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()`` args ``detection_callback`` and ``service_uuids`` are no longer keyword-only.
* ``BleakScanner()`` arg ``scanning_mode`` is no longer Windows-only and is no longer keyword-only.
* All ``BleakScanner()`` instances in BlueZ backend now use common D-Bus object manager.
* Deprecated ``filters`` kwarg in ``BleakScanner`` in 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
``BleakScanner`` scans or ``BleakClient`` is connected. Fixes 500.
* Fixed not handling "InterfacesRemoved" in ``BleakClient`` in BlueZ backend. Fixes 882.
* Fixed leaking D-Bus socket file descriptors in BlueZ backend. Fixes 805.

Removed
-------

* Removed fallback to call "ConnectDevice" when "Connect" fails in Bluez backend. Fixes 806.

0.14.3

======================

Changed
-------

* Suppress macOS 12 scanner bug error message for macOS 12.3 and higher. Fixes 720.
* Added filters ``Discoverable`` and ``Pattern`` to BlueZ D-Bus scanner. Fixes 790.

Fixed
-----

* Fixed reading the battery level returns a zero-filled ``bytearray`` on BlueZ >= 5.48. Fixes 750.
* Fixed unpairing does not work on windows with WinRT. Fixes 699
* Fixed leak of ``_disconnect_futures`` in ``CentralManagerDelegate``.
* Fixed callback not removed from ``_disconnect_callbacks`` on disconnect in ``CentralManagerDelegate``.

0.14.2

======================

Changed
-------

* Updated ``bleak-winrt`` dependency to v1.1.1. Fixes 741.

Fixed
-----

* Fixed ``name`` is ``'Unknown'`` in WinRT backend. Fixes 736.

0.14.1

======================

Fixed
-----

* Fixed ``AttributeError`` when passing ``BLEDevice`` to ``BleakClient``
constructor on WinRT backend. Fixes 731.

0.14.0

======================

Added
-----

* Added ``service_uuids`` kwarg to ``BleakScanner``. This can be used to work
around issue of scanning not working on macOS 12. Fixes 230. Works around 635.
* Added UUIDs for LEGO Powered Up Smart Hubs.

Changed
-------

* Changed WinRT backend to use GATT session status instead of actual device
connection status.
* Changed handling of scan response data on WinRT backend. Advertising data
and scan response data is now combined in callbacks like other platforms.
* Updated ``bleak-winrt`` dependency to v1.1.0. Fixes 698.

Fixed
-----

* Fixed ``InvalidStateError`` in CoreBluetooth backend when read and notification
of the same characteristic are used. Fixes 675.
* Fixed reading a characteristic on CoreBluetooth backend also triggers notification
callback.
* Fixed in Linux, scanner callback not setting metadata parameters. Merged 715.

0.13.0

======================

Added
-----

* Allow 16-bit UUID string arguments to ``get_service()`` and ``get_characteristic()``.
* Added ``register_uuids()`` to augment the uuid-to-description mapping.
* Added support for Python 3.10.
* Added ``force_indicate`` keyword argument for WinRT backend client's ``start_notify`` method. Fixes 526.
* Added python-for-android backend.

Changed
-------

* Changed from ``winrt`` dependency to ``bleak-winrt``.
* Improved error when connecting to device fails in WinRT backend. Fixes 647.
* Changed examples to use ``asyncio.run()``.
* Changed the default notify method for the WinRT backend from ``Indicate`` to ``Notify``.
* Refactored GATT error handling in WinRT backend.
* Changed Windows Bluetooth packet capture instructions. Fixes 653.
* Replaced usage of deprecated ``abc.abstractproperty``.
* Use ``asyncio.get_running_loop()`` instead of ``asyncio.get_event_loop()``.
* Changed "service is already present" exception to logged error in BlueZ backend. Merged 622.

Removed
-------

* Removed ``dotnet`` backend.
* Dropped support for Python 3.6.
* Removed ``use_cached`` kwarg from ``BleakClient`` ``connect()`` and ``get_services()`` methods. Fixes 646.

Fixed
-----

* Fixed unused timeout in the implementation of BleakScanner's ``find_device_by_address()`` function.
* Fixed BleakClient ignoring the ``adapter`` kwarg. Fixes 607.
* Fixed writing descriptors in WinRT backend. Fixes 615.
* Fixed race on disconnect and cleanup of BlueZ matches when device disconnects early. Fixes 603.
* Fixed memory leaks on Windows.
* Fixed protocol error code descriptions on WinRT backend. Fixes 532.
* Fixed race condition hitting assentation in BlueZ ``disconnect()`` method. Fixes 641.
* Fixed enumerating services on a device with HID service on WinRT backend. Fixes 599.
* Fixed subprocess running to check BlueZ version each time a client is created. Fixes 602.
* Fixed exception when discovering services after reconnecting in CoreBluetooth backend.

Page 4 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.