setWifiConfig method
Edit the WiFi configuration
Edits the WiFi configuration. If the configuration fails, the entire proccess is rolled back and an error will be returned.
Parameters:
-
WifiConfig wifiConfig (required):
-
String uuidToken: Used for remote connections to device
Implementation
Future<void> setWifiConfig(
WifiConfig wifiConfig, {
String? uuidToken,
}) async {
final response = await setWifiConfigWithHttpInfo(
wifiConfig,
uuidToken: uuidToken,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}