Class BUSGateway

    • Constructor Detail

      • BUSGateway

        public BUSGateway​(String host,
                          int port,
                          String pwd)
        Creates a new BUSGateway instance with host, port and password.
        Parameters:
        host - the gateway host name or IP
        port - the gateway port
        pwd - the gateway password
    • Method Detail

      • getHost

        public String getHost()
        Returns the gateway host (IP address or hostname).
        Returns:
        host
      • getPort

        public int getPort()
        Returns the gateway port.
        Returns:
        port
      • getPassword

        public String getPassword()
        Returns the gateway password.
        Returns:
        password
      • initConnector

        protected void initConnector()
        Description copied from class: OpenGateway
        Init the connector for this OpenGateway.
        Specified by:
        initConnector in class OpenGateway
      • isCmdConnectionReady

        public boolean isCmdConnectionReady()
        Description copied from class: OpenGateway
        Returns true if CMD connection is ready to send messages (connector must be connected and in case of BUS connection checks if a CMD was sent recently < 120sec)
        Specified by:
        isCmdConnectionReady in class OpenGateway
        Returns:
        boolean