setTransmitSTSP method

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

Sets the transmission of start/stop characters for Code 39 symbology.

deviceId - The identifier of the target device. enabled - A boolean indicating whether to enable (true) or disable (false) the transmission of start/stop characters.

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

Implementation

Future<CommandResponse> setTransmitSTSP(
    {required deviceId, required bool enabled}) async {
  final String command =
      enabled ? code39TransmitStSp : code39DoNotTransmitStSp;
  return sendCommand(deviceId, command);
}