disconnectWifi method

Future<void> disconnectWifi({
  1. String? uuidToken,
})

Disconnect from a WiFi network

Disconnects the device from the current WiFi network

Parameters:

  • String uuidToken: Used for remote connections to device

Implementation

Future<void> disconnectWifi({
  String? uuidToken,
}) async {
  final response = await disconnectWifiWithHttpInfo(
    uuidToken: uuidToken,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}