setNetworkCredentials method
- NetworkType type = NetworkType.wifi,
- String? ssid,
- String? psk,
Set the network credentials of the smart machine, so it can connect to the internet.
ssid is the networks ssid
psk is the networks passkey
Implementation
Future<void> setNetworkCredentials({NetworkType type = NetworkType.wifi, String? ssid, String? psk}) async {
final request = SetNetworkCredentialsRequest(type: type.name, ssid: ssid, psk: psk);
await _client.setNetworkCredentials(request);
}