...
Code Block | ||
---|---|---|
| ||
[admin@device] /iot mqtt> publish broker=AWS topic=my/test/topic message="{\"temperature\":15}" |
In this case, where AWS is a broker's name that was configured in the broker section, my/test/topic is a topic (as it is configured on the server-side/on the broker itself) and "{\"temperature\":15}" is the message you wish to publish (in this specific example, in the JSON format). Retain and QoS parameters are optional - both are defined by the broker.
...