Class PropClient
- All Implemented Interfaces:
Runnable
PropertyClient used for KNX property access.
PropClient is a console based tool implementation for reading and writing KNX properties. It
supports network access using a KNXnet/IP, USB, or FT1.2 connection. To start the PropClient,
invoke the main-method of this class. Take a look at the command line options to
configure the tool with the desired communication settings.
The main part of this tool implementation interacts with the PropertyClient interface, which
offers high level access to KNX property information. It also shows creation of the
PropertyAdapter, necessary for a property client to work. All queried property values, as
well as occurring problems are written to System.out
.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PropClient
Constructs a new PropClient.- Parameters:
args- options for the property client tool, seemain(String[])- Throws:
tuwien.auto.calimero.KNXIllegalArgumentException- on missing or wrong formatted option value
-
-
Method Details
-
main
Entry point for running the PropClient.An IP host or port identifier has to be supplied to specify the endpoint for the KNX network access.
To show the usage message of this tool on the console, supply the command line option -help (or -h).
Command line options are treated case sensitive. Available options for the property client:--help -hshow help message--versionshow tool/library version and exit--local -llocal device management--remote -rKNX addr remote property service--definitions -dfile use property definition file--localhostid local IP/host name--localportnumber local UDP port (default system assigned)--port -pnumber UDP port on host (default 3671)--nat -nenable Network Address Translation--ft12 -fuse FT1.2 serial communication--usb -uuse KNX USB communication--tpuartuse TP-UART communication
--emulatewriteenable -echeck write-enable of a property
--medium -mid KNX medium [tp1|p110|knxip|rf] (defaults to tp1)--domainaddress domain address on open KNX medium (PL or RF)--knx-address -kKNX address KNX device address of local endpoint--connect -cconnection oriented mode--authorize -akey authorize key to access KNX device
- Parameters:
args- command line options for property client
-
run
public void run()
-