Skip to content

Latest commit

 

History

History
9 lines (4 loc) · 268 Bytes

commands.md

File metadata and controls

9 lines (4 loc) · 268 Bytes

Connect to broker.emqx.io and subscribe to the testtopic/# topic:

mqtt sub -t 'testtopic/#' -h 'broker.emqx.io' -v

Connect to broker.emqx.io and send a message to the testtopic/hello topic

mqtt pub -t 'testtopic/hello' -h 'broker.emqx.io' -m 'from MQTT.js'