resetDevice method

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

Reset device to factory settings

Wipes all configuration and restore the factory settings. This includes device, network and services settings and also the license key. Once completed, the device will be rebooted. Be careful since the process cannot be stopped and it is irreversible.

Parameters:

  • String uuidToken: Used for remote connections to device

Implementation

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