SerialDevice constructor

SerialDevice({
  1. required String portName,
  2. required Duration readInterval,
  3. required BurtLogger logger,
  4. int baudRate = 9600,
})

Opens a new serial connection with the given port name and baud rate.

Implementation

SerialDevice({
    required String portName,
	required this.readInterval,
    required this.logger,
    int baudRate = 9600,
}) : _port = DelegateSerialPort(portName, baudRate: baudRate);