Library knx
Functions for communicating with Konnex (KNX) devices
Author:
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:
- knx_header_length, or nil on error
- knx_protocol_version, or error message
- knx_service_type
- knx_total_length
- 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