参考Windows下搭建MQTT服务器
- 下载安装mosquitto
- 配置
mosquitto_passwd.exe -c d:/pwfile.example admin
mosquitto_sub.exe -h 127.0.0.1 -p 7788 -u admin -P 123456 -v -t sensor
mosquitto_pub.exe -h 127.0.0.1 -p 7788 -u admin -P 123456 -t sensor -m "消息测试"
-
测试运行
![3cdb900ef8c4227e49a17e4f3e44b881]()
-
可视化MQTT客户端工具
MQTTX下载地址