ModbusClientSerialAscii constructor
ModbusClientSerialAscii({
- required String portName,
- int? unitId,
- ModbusConnectionMode connectionMode = ModbusConnectionMode.autoConnectAndKeepConnected,
- SerialBaudRate baudRate = SerialBaudRate.b19200,
- SerialDataBits dataBits = SerialDataBits.bits8,
- SerialStopBits stopBits = SerialStopBits.one,
- SerialParity parity = SerialParity.none,
- SerialFlowControl flowControl = SerialFlowControl.rtsCts,
- 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));