scan

abstract fun scan(timeoutMs: Int): List<WifiNetwork>(source)

Asks the car to scan for networks and waits for its results.

Return

the networks found, strongest first; empty when none

Parameters

timeoutMs

how long to wait, capped at {@value #MAX_SCAN_MS}

Throws

when the adapter has no Wi-Fi

if the permission is not granted