SerialDevice constructor
- required String portName,
- required Duration readInterval,
- required BurtLogger logger,
- 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);