original_docstring: Create KNX/IP Frame object to be sent to device.
docstring: Create KNX/IP Frame object to be sent to device.
docstring_tokens: Create KNX / IP Frame object to be sent to device .
code: def create_knxipframe(self) -> KNXIPFrame:
          """Create KNX/IP Frame object to be sent to device."""
          (local_addr, local_port) = self.udp_client.getsockname()
          # set control_endpoint and data_endpoint to the same udp_connection
          endpoint = HPAI(ip_addr=local_addr, port=local_port)
          connect_request = ConnectRequest(
              self.xknx,
              request_type=ConnectRequestType.TUNNEL_CONNECTION,
              control_endpoint=endpoint,
              data_endpoint=endpoint,
          )
          return KNXIPFrame.init_from_body(connect_request)
code_tokens: def create_knxipframe ( self ) -> KNXIPFrame : ( local_addr , local_port ) = self . udp_client . getsockname ( ) endpoint = HPAI ( ip_addr = local_addr , port = local_port ) connect_request = ConnectRequest ( self . xknx , request_type = ConnectRequestType . TUNNEL_CONNECTION , control_endpoint = endpoint , data_endpoint = endpoint , ) return KNXIPFrame . init_from_body ( connect_request )
short_docstring: Create KNX/IP Frame object to be sent to device.
short_docstring_tokens: Create KNX / IP Frame object to be sent to device .
comment: """Create KNX/IP Frame object to be sent to device."""$SEP$# set control_endpoint and data_endpoint to the same udp_connection