connect

@RequiresApi(value = 29)
suspend fun connect(ssid: String, passphraseConfiguration: PassphraseConfiguration)

Connects to an unprovisioned wifi device by establishing a temporary wifi network connection with the given ssid and the password.

Note: The SSID and the password are the ones used to connect to the unprovisioned device, not the SSID or the passphrase of the network that the device must be provisioned into.

Throws

if the wifi is not enabled.

if the device failed to bind to the connected wifi network. Call connect to connect to the softap and bind to the network.