setAddOnPlus2 method
Sets the 2-character add-on for UPCA 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 ? enableUPCAPlus2 : disableUPCAPlus2;
return sendCommand(deviceId, command);
}