setScaleToZero method
Sets the connected scale device to zero (tare).
deviceIdentifier specifies the scale device (defaults to
DataWedgeScannerIdentifier.usbTgcsMp7000).
Implementation
Future<void> setScaleToZero({
String deviceIdentifier = DataWedgeScannerIdentifier.usbTgcsMp7000,
String? commandTag,
bool requestResult = true,
}) {
return sendCommandBundle(
command: DataWedgeApi.scale,
value: DataWedgeScaleRequest(
deviceIdentifier: deviceIdentifier,
command: DataWedgeScaleCommand.setScaleToZero,
).toMap(),
commandTag: commandTag ?? 'SET_SCALE_TO_ZERO',
requestResult: requestResult,
);
}