Command Line Utilities
XMQ provides several command-line utilities for testing and interacting with the MQTT broker.
Quick Start
All three utilities connect to a broker with -h (hostname, default localhost), -p (port, default 1883), -u and -P (credentials), and -V (protocol version 3, 4 or 5). A typical session:
# In one terminal, start receiving on a topic: xmq_sub -h broker.example.com -t demo -v # In another, publish to it: xmq_pub -h broker.example.com -t demo -m "hello"
xmq_con
A client for connection tests and verification.
xmq_pub
A client for publishing messages to topics.
xmq_sub
A client for subscribing to topics and receiving messages.
