Class BaudRateCommand

    • Constructor Detail

      • BaudRateCommand

        public BaudRateCommand​(int[] bytes)
        Decoding constructor.
        Parameters:
        bytes - encoded option starting with the COM-PORT-OPTION byte NullPointerException if bytes is null IllegalArgumentException if bytes has length that is too short or too long IllegalArgumentException if bytes[0] is not RFC2217.COM_PORT_OPTION IllegalArgumentException if bytes[1] is not RFC2217.SET_BAUDRATE (client or server)
      • BaudRateCommand

        public BaudRateCommand​(boolean client,
                               int baudRate)
        Encoding constructor.
        Parameters:
        baudRate - baud rate
        client - true for the client-to-server command, false for the server-to-client command