Implement BLE device discovery

This commit is contained in:
2026-04-11 10:51:29 +08:00
parent 4fb515a63d
commit 27e16df141
3 changed files with 90 additions and 4 deletions

View File

@@ -43,7 +43,26 @@ Implemented behavior:
- stay transport-only
- keep real BLE implementation for a later node
### Node 2: CDC transport cleanup
### Node 2: BLE device discovery
Files updated in this step:
- `KeyBorad/KeyBorad/DRI/GATT/Dri_Gatt.cpp`
- `KeyBorad/KeyBorad/KeyBorad.vcxproj`
Design notes:
- use Qt Bluetooth directly
- keep discovery synchronous for now so the first teaching step stays small
- only collect low-energy devices
Implemented behavior:
- start BLE discovery with `QBluetoothDeviceDiscoveryAgent`
- collect device name and address
- filter to `LowEnergyCoreConfiguration`
- stop after a short timeout
### Node 3: CDC transport cleanup
Files updated in this step: