setAddOnPlus2 method

Future<CommandResponse> setAddOnPlus2({
  1. required dynamic deviceId,
  2. required bool enabled,
})

Sets the 2-character add-on for UPCE1 symbology.

deviceId - The identifier of the target device. enabled - A boolean indicating whether to enable (true) or disable (false) the 2-character add-on.

Returns a CommandResponse indicating the success or failure of the operation.

Implementation

Future<CommandResponse> setAddOnPlus2(
    {required deviceId, required bool enabled}) async {
  final String command = enabled ? enableUPCE1Plus2 : disableUPCE1Plus2;
  return sendCommand(deviceId, command);
}