From 4235f0590b6684fcb977aa9040f2f4abbd0b8a97 Mon Sep 17 00:00:00 2001 From: Vincent Abt Date: Thu, 23 May 2024 22:05:35 +0200 Subject: [PATCH 1/3] mention fix in changelog --- CHANGELOG.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b811c574..ab2d7105 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -19,6 +19,8 @@ Fixed ----- * Fixed ``discovered_devices_and_advertisement_data`` returning devices that should be filtered out by service UUIDs. Fixes #1576. +* Fixed a ``Descriptor None was not found!`` exception occurring in ``start_notify()`` on Android. Fixes #823 + and #828. `0.22.1`_ (2024-05-07) ====================== From 6907eaddbcfdeba5a9ba82d696d41d17888d6e3f Mon Sep 17 00:00:00 2001 From: Vincent Abt Date: Thu, 23 May 2024 21:12:05 +0200 Subject: [PATCH 2/3] fix 'Descriptor None was not found!' --- bleak/backends/p4android/defs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bleak/backends/p4android/defs.py b/bleak/backends/p4android/defs.py index f5245450..832f92bc 100644 --- a/bleak/backends/p4android/defs.py +++ b/bleak/backends/p4android/defs.py @@ -5,6 +5,7 @@ from jnius import autoclass, cast import bleak.exc +from bleak.uuids import normalize_uuid_16 # caching constants avoids unnecessary extra use of the jni-python interface, which can be slow @@ -87,4 +88,4 @@ class ScanFailed(enum.IntEnum): BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE: "write-without-response", } -CLIENT_CHARACTERISTIC_CONFIGURATION_UUID = "2902" +CLIENT_CHARACTERISTIC_CONFIGURATION_UUID = normalize_uuid_16(0x2902) From e348a44687223150a7208d76aa86226d62411a03 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Thu, 23 May 2024 17:30:02 -0500 Subject: [PATCH 3/3] Update CHANGELOG.rst --- CHANGELOG.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ab2d7105..fb25f57f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -19,8 +19,7 @@ Fixed ----- * Fixed ``discovered_devices_and_advertisement_data`` returning devices that should be filtered out by service UUIDs. Fixes #1576. -* Fixed a ``Descriptor None was not found!`` exception occurring in ``start_notify()`` on Android. Fixes #823 - and #828. +* Fixed a ``Descriptor None was not found!`` exception occurring in ``start_notify()`` on Android. Fixes #823. `0.22.1`_ (2024-05-07) ======================