restartBluetooth method

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

Restart bluetooth

Restarts bluetooth

Parameters:

  • String uuidToken: Used for remote connections to device

Implementation

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