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 75cd779 commit 0b042fa
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, uuidstr_to_str

# 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 = uuidstr_to_str(normalize_uuid_16(0x2902))

0 comments on commit 0b042fa

Please sign in to comment.