resetDeviceWithHttpInfo method

Future<Response> resetDeviceWithHttpInfo({
  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.

Note: This method returns the HTTP Response.

Parameters:

  • String uuidToken: Used for remote connections to device

Implementation

Future<Response> resetDeviceWithHttpInfo({
  String? uuidToken,
}) async {
  // ignore: prefer_const_declarations
  final path = uuidToken != null
      ? '${LbSetupEnvironment.getApiEndpoint(iotUuid: uuidToken)}/device'
      : '/device';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}