scan

abstract fun scan(timeout: Duration, serviceUuid: Uuid? = null, address: String? = null): Flow<BleDevice>(source)

Scans for BLE devices.

Return

A Flow of discovered BleDevices.

Parameters

timeout

The duration of the scan.