mirror of
https://github.com/YuzuZensai/beamboxctl.git
synced 2026-07-21 20:42:19 +00:00
✨ feat: Implement interactive device selection
This commit is contained in:
@@ -20,6 +20,13 @@ export interface BleBackend {
|
||||
timeoutMs: number,
|
||||
): Promise<DiscoveredDevice | null>;
|
||||
|
||||
scanForAll(
|
||||
matcher: (device: DiscoveredDevice) => boolean,
|
||||
timeoutMs: number,
|
||||
onDeviceFound?: (device: DiscoveredDevice) => void,
|
||||
signal?: AbortSignal,
|
||||
): Promise<DiscoveredDevice[]>;
|
||||
|
||||
stopScan(): Promise<void>;
|
||||
|
||||
connect(address: string): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user