sh MQTT Mosquitto测试命令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh MQTT Mosquitto测试命令相关的知识,希望对你有一定的参考价值。

# MQTT Commands

mosquitto_pub -h localhost -t test -m "hello world"
mosquitto_sub -h localhost -t test

# MQTTS Commands with Password Protection
mosquitto_sub -h localhost -t test -u "username" -P "password"
mosquitto_pub -h localhost -t "test" -m "hello world" -u "username" -P "password"

以上是关于sh MQTT Mosquitto测试命令的主要内容,如果未能解决你的问题,请参考以下文章

2018-11-08-mqtt-mosquitto系列04之mosquitto_sub订阅

2018-11-08-mqtt-mosquitto系列04之mosquitto_sub订阅

MQTT协议 - Mosquitto安装测试

MQTT qos参数无效

Ubuntu 16.04安装测试MQTT Mosquitto

2018-11-16-mqtt-mosquitto系列12之桥接性能损耗初步测试