ModbusClientSerialAscii constructor

ModbusClientSerialAscii({
  1. required String portName,
  2. int? unitId,
  3. ModbusConnectionMode connectionMode = ModbusConnectionMode.autoConnectAndKeepConnected,
  4. SerialBaudRate baudRate = SerialBaudRate.b19200,
  5. SerialDataBits dataBits = SerialDataBits.bits8,
  6. SerialStopBits stopBits = SerialStopBits.one,
  7. SerialParity parity = SerialParity.none,
  8. SerialFlowControl flowControl = SerialFlowControl.rtsCts,
  9. Duration responseTimeout = const Duration(seconds: 3),
})

Implementation

ModbusClientSerialAscii(
    {required String portName,
    super.unitId,
    super.connectionMode = ModbusConnectionMode.autoConnectAndKeepConnected,
    SerialBaudRate baudRate = SerialBaudRate.b19200,
    SerialDataBits dataBits = SerialDataBits.bits8,
    SerialStopBits stopBits = SerialStopBits.one,
    SerialParity parity = SerialParity.none,
    SerialFlowControl flowControl = SerialFlowControl.rtsCts,
    super.responseTimeout = const Duration(seconds: 3)})
    : super(
          serialPort: UsbSerialPort(
              portName, baudRate, dataBits, stopBits, parity, flowControl));