Summary
MQTT is an open OASIS and ISO standard lightweight, publish-subscribe network protocol that transports messages between devices.
Broker
Sub-menu: /iot mqtt
To add a new broker, run the following command:
[admin@device] /iot mqtt brokers add
Configurable properties are shown below:
Property | Description |
---|---|
address (IP|hostname; Default: ) | |
certificate (string; Default: ) | |
client-id (string; Default: ) | |
name (string; Default: ) | |
password (string; Default: ) | |
port (integer:0..65535; Default: 1883) | |
ssl (yes | no; Default: no) | |
username (string; Default: ) |
Publish
Sub-menu: /iot mqtt
Property | Description |
---|---|
broker (string; Default: ) | |
message (string; Default: ) | |
qos (string; Default: ) | |
retain (string; Default: ) | |
topic (integer:0..65535; Default: 1883) |
An example of MQTT publish would look like this:
[admin@device] /iot mqtt> publish broker=x topic=y message=z
where x is an actual broker's name configured in the broker section, y is a topic (as it is configured on the server-side/on the broker itself) and z is the message you wish to publish.