xmq_con
The xmq_con utility is a command-line client for MQTT version 5/3.1.1/3.1 used to test and verify connections.
Usage
xmq_con [options]
Examples
# Connect once to a broker on localhost: xmq_con # Connect to a remote broker with credentials: xmq_con -h broker.example.com -p 1883 -u user -P password # Open 100 sessions at 50 per second, reporting a row every 30s: xmq_con -h broker.example.com -n 100 -R 50 --result-interval 30s # MQTT 5 with a connect property: xmq_con -h broker.example.com -V 5 -D connect receive-maximum 10
Options
-R,--connect-rate: Connect rate per second.--quiet: Don't print to stdout.-d,--debug: Print debug messages.-?,--help: Print this help.
Connect Properties
The following properties can be provided:
authentication-data(binary data - note treated as a string)authentication-method(UTF-8 string pair)maximum-packet-size(32-bit unsigned integer)receive-maximum(16-bit unsigned integer)request-problem-information(8-bit unsigned integer)request-response-information(8-bit unsigned integer)session-expiry-interval(32-bit unsigned integer, note use -x instead)topic-alias-maximum(16-bit unsigned integer)user-property(UTF-8 string pair)
