setNetworkCredentials method

Future<void> setNetworkCredentials({
  1. NetworkType type = NetworkType.wifi,
  2. String? ssid,
  3. 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);
}