connectAndAwait

abstract suspend fun connectAndAwait(device: BleDevice, timeout: Duration): BleConnectionState(source)

Connects to the given BleDevice and waits for a terminal state or timeout.