Class USBGateway

    • Constructor Detail

      • USBGateway

        public USBGateway​(String serialPortName)
    • Method Detail

      • getSerialPortName

        public String getSerialPortName()
        Returns the gateway serial port name
        Returns:
        serial port
      • initConnector

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

        public int getZigBeeIdAsDecimal()
        Returns the ZigBee ID of the gateway in decimal format (=four last bytes of the ZigBee MAC address of the product converted in decimal format).
        Returns:
        the gateway ZigBeeId, or 0 if it is unknown
      • 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