How to use the xknx.knxip.hpai.HPAI function in xknx

To help you get started, we’ve selected a few xknx examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github XKNX / xknx / xknx / knxip / connect_request.py View on Github external
def __init__(self, xknx):
        """Initialize ConnectRequest object."""
        super().__init__(xknx)
        self.request_type = None
        self.control_endpoint = HPAI()
        self.data_endpoint = HPAI()
        # KNX layer, 0x02 = TUNNEL_LINKLAYER
        self.flags = 0x02
github XKNX / xknx / xknx / knxip / connect_request.py View on Github external
def __init__(self, xknx):
        """Initialize ConnectRequest object."""
        super().__init__(xknx)
        self.request_type = None
        self.control_endpoint = HPAI()
        self.data_endpoint = HPAI()
        # KNX layer, 0x02 = TUNNEL_LINKLAYER
        self.flags = 0x02
github XKNX / xknx / xknx / knxip / disconnect_request.py View on Github external
def __init__(self, xknx):
        """Initialize DisconnectRequest object."""
        super().__init__(xknx)

        self.communication_channel_id = 1
        self.control_endpoint = HPAI()
github XKNX / xknx / xknx / knxip / disconnect_request.py View on Github external
def calculated_length(self):
        """Get length of KNX/IP body."""
        return 2 + HPAI.LENGTH
github XKNX / xknx / xknx / knxip / search_request.py View on Github external
def __init__(self, xknx):
        """Initialize SearchRequest object."""
        super().__init__(xknx)
        self.discovery_endpoint = HPAI(ip_addr="224.0.23.12", port=3671)
github XKNX / xknx / xknx / knxip / search_request.py View on Github external
def calculated_length(self):
        """Get length of KNX/IP body."""
        return HPAI.LENGTH
github XKNX / xknx / xknx / knxip / connect_response.py View on Github external
def calculated_length(self):
        """Get length of KNX/IP body."""
        return 2 + HPAI.LENGTH + \
            ConnectResponse.CRD_LENGTH
github XKNX / xknx / xknx / knxip / connectionstate_request.py View on Github external
def calculated_length(self):
        """Get length of KNX/IP body."""
        return 2 + HPAI.LENGTH
github XKNX / xknx / xknx / knxip / search_response.py View on Github external
def __init__(self, xknx):
        """Initialize SearchResponse object."""
        super().__init__(xknx)
        self.control_endpoint = HPAI()
        self.dibs = []