scanAndConnect

suspend fun scanAndConnect(transportType: TransportType? = null): Result<DeviceInfo>

Convenience: scan + connect to first matching device.

Return

Connected device info

Parameters

transportType

Filter by transport type, or null to scan all