provision
suspend fun provision(ssid: String, password: String, hidden: Boolean = false): ProvisionResult(source)
Provision the device with the given WiFi credentials.
Sends CMD_CONNECT (1) or CMD_CONNECT_HIDDEN (2) with the SSID and password. The response error code is mapped to a ProvisionResult.
Parameters
ssid
The target network SSID.
password
The network password. Pass an empty string for open networks.
hidden
Set to true to target a hidden (non-broadcasting) network.