Skip to content

Commit 284bc8f

Browse files
committed
docs(README): use mqttx CLI for MQTT message publish/subscribe
1 parent 14ee101 commit 284bc8f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,22 @@ Configure the plugin in the Dashboard: http://localhost:18083/#/plugins/detail/e
3636

3737
Verify:
3838

39+
Using [MQTTX CLI](https://mqttx.app/cli)
40+
3941
```bash
40-
mosquitto_pub -d -q 1 -t 't/2' -m 'hello-from-offline1'
41-
mosquitto_pub -d -q 1 -t 't/2' -m 'hello-from-offline2'
42-
mosquitto_pub -d -q 1 -t 't/2' -m 'hello-from-offline3'
42+
mqttx pub -q 1 -t 't/2' -m 'hello-from-offline1'
43+
mqttx pub -q 1 -t 't/2' -m 'hello-from-offline2'
44+
mqttx pub -q 1 -t 't/2' -m 'hello-from-offline3'
4345

44-
mosquitto_sub -d -q 1 -t 't/2' -i $(pwgen 20 -1)
46+
mqttx sub -q 1 -t 't/2' -i $(pwgen 20 -1)
4547
```
4648

4749
No messages should be received:
4850

4951
```bash
50-
mosquitto_sub -d -q 1 -t 't/2' -i $(pwgen 20 -1)
52+
mqttx sub -q 1 -t 't/2' -i $(pwgen 20 -1)
5153
```
5254

53-
5455
## Release
5556

5657
An EMQX plugin release is a tar file including including a subdirectory of this plugin's name and it's version, that contains:

0 commit comments

Comments
 (0)