scanForDevices

fun scanForDevices(duration: Long? = null, timeUnit: TimeUnit? = null): Observable<ZTScanRecord>

Scan for all BLE devices.

Parameters

duration

The maximum duration for the scan

timeUnit

The TimeUnit for the scan