Add device via Bluetooth
connect_bluetoothScans for CyberBrick Bluetooth devices and auto-selects the matching board to complete pairing without UI interaction; verify the paired device afterward with device_list.
Instructions
Drive the app's real add-device flow (BluetoothDeviceManager.requestDevice — the same one the MyDeviceDialog UI uses): starts a BLE scan filtered to CyberBrick devices (companyIdentifier 17882, manufacturer data prefix [99]), then auto-selects the matching device so the chooser resolves without UI. After it resolves, the app marks the device and the caller can verify with device_list. MUTATING (pairs a device).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceId | No | Select the board with this deviceId (from device_list; on macOS a Chromium pseudo-address, not the chip MAC). Takes precedence over deviceName — use it for boards that share a name or were renamed (paired boards advertise as CyberBrick-[NNNN]). | |
| timeoutMs | No | How long to wait for the chooser to resolve before cancelling. The B0 probe after selection has its own budget. | |
| deviceName | No | Prefer a device whose advertised name matches this substring (case-insensitive). If omitted, the first discovered CyberBrick device is selected. |