Skip to content

Commit

Permalink
fix 'Descriptor None was not found!'
Browse files Browse the repository at this point in the history
  • Loading branch information
vabt-igd committed May 23, 2024
1 parent 4235f05 commit 6907ead
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bleak/backends/p4android/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

0 comments on commit 6907ead

Please sign in to comment.