Class NotifyModemStateCommand


  • public class NotifyModemStateCommand
    extends ComPortCommand
    RFC 2217 NOTIFY-MODEMSTATE command.
    See Also:
    RFC 2217
    • Constructor Detail

      • NotifyModemStateCommand

        public NotifyModemStateCommand​(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 != 3 IllegalArgumentException if bytes[0] is not RFC2217.COM_PORT_OPTION IllegalArgumentException if bytes[1] is not RFC2217.NOTIFY_MODEMSTATE (client or server)
      • NotifyModemStateCommand

        public NotifyModemStateCommand​(boolean client,
                                       int modemState)
        Encoding constructor.
        Parameters:
        modemState - modem state value
        client - true for the client-to-server command, false for the server-to-client command