connect

abstract fun connect(ssid: String, password: String)(source)

Joins ssid. password may be null or empty for an open network. The call returns at once; a failure arrives through onChanged and status.

Throws

when ssid is null or empty

when the adapter has no Wi-Fi

if the permission is not granted