connectToDevice

fun connectToDevice(address: String? = null)(source)

Connect to the device with address, or to the one the user picks in the browser's own chooser when address is null there. Where the app scans itself, a null address starts the device list instead: the connection never goes to whichever device advertises first. Pauses at WifiProvisionUiState.Phase.DeviceFound so the user can check the device before proceeding.

Parameters

address

Address of the device to connect to.