connect method

  1. @override
Future<bool> connect()
inherited

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();
}