connect method
Connect the port if not already done or disconnected
Implementation
@override
Future<bool> connect() async {
if (isConnected) {
return true;
}
ModbusAppLogger.fine("Opening serial port ${serialPort.name}...");
return serialPort.open();
}