Library knx

Functions for communicating with Konnex (KNX) devices

Author:

  • Niklaus Schiess, Dominik Schneider

Copyright © Same as Nmap--See https://nmap.org/book/man-legal.html

Source: https://svn.nmap.org/nmap/nselib/knx.lua

Functions

parseHeader (knxMessage)

Parse a KNX header

parseKnxAddress (addr)

Parse a KNX address from raw bytes

query (service, ip_address, port)

Returns a raw knx request

Functions

parseHeader (knxMessage)

Parse a KNX header

Parameters

knxMessage
A KNX message packet as a string

Return values:

  1. knx_header_length, or nil on error
  2. knx_protocol_version, or error message
  3. knx_service_type
  4. knx_total_length
  5. pos The position just after the header
parseKnxAddress (addr)

Parse a KNX address from raw bytes

Parameters

addr
Unpacked 2 bytes

Return value:

KNX address in dotted-decimal format
query (service, ip_address, port)

Returns a raw knx request

Parameters

service
KNX service type of the request
ip_address
IP address of the sending host
port
Port where gateways should respond to