You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defnormalize_uuid_str(uuid: str) ->str:
""" Normaizes a UUID to the format used by Bleak. - Converted to lower case. - 16-bit UUIDs are expanded to 128-bit. .. versionadded:: 0.20.0 """iflen(uuid) ==4:
# Bluetooth SIG registered 16-bit UUIDsuuid=f"0000{uuid}-0000-1000-8000-00805f9b34fb"# let UUID class do the validation and conversion to lower casereturnstr(UUID(uuid))
What I Did
Performing a Quick Scan. One of the devices has a service UUID string of “DAF51C01”.
Logs
File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/Users/alittle/code/mobapps-python-app-gaiaclient/.venv/lib/python3.10/site-packages/bleak/backends/corebluetooth/CentralManagerDelegate.py", line 265, in did_discover_peripheral
callback(peripheral, advertisementData, RSSI)
File "/Users/alittle/code/mobapps-python-app-gaiaclient/.venv/lib/python3.10/site-packages/bleak/backends/corebluetooth/scanner.py", line 116, in callback
service_uuids = [
File "/Users/alittle/code/mobapps-python-app-gaiaclient/.venv/lib/python3.10/site-packages/bleak/backends/corebluetooth/scanner.py", line 117, in <listcomp>
cb_uuid_to_str(u) for u in a.get("kCBAdvDataServiceUUIDs", [])
File "/Users/alittle/code/mobapps-python-app-gaiaclient/.venv/lib/python3.10/site-packages/bleak/backends/corebluetooth/utils.py", line 19, in cb_uuid_to_str
return normalize_uuid_str(uuid.UUIDString())
File "/Users/alittle/code/mobapps-python-app-gaiaclient/.venv/lib/python3.10/site-packages/bleak/uuids.py", line 1167, in normalize_uuid_str
return str(UUID(uuid))
File "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/uuid.py", line 177, in __init__
raise ValueError('badly formed hexadecimal UUID string')
ValueError: badly formed hexadeci
The text was updated successfully, but these errors were encountered:
bluetoothctl -v
) in case of Linux: N/ADescription
Doing a quick scan on MacOS is raising some unhandled exceptions.
Similar issue
adafruit/Adafruit_Blinka_bleio#62 (review)
What I Did
Performing a Quick Scan. One of the devices has a service UUID string of “DAF51C01”.
Logs
The text was updated successfully, but these errors were encountered: