mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-07-03 16:31:28 +02:00
9c692fac8b
In bleak 3.x, BleakClient(address_string) can't find paired BLE devices that aren't actively advertising. This caused BleakDeviceNotFoundError or 30-second connection timeouts. Fix: pre-scan via BleakScanner.find_device_by_address() which queries BlueZ's D-Bus object tree directly, then pass the BLEDevice object to MeshCore.create_ble(device=...) instead of the raw MAC address. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>