mqtt实操
mqtt实操
·
mqtt-service安装
Mosquitto下载地址:https://mosquitto.org/download/
==下载安装后,mosquitto.exe新建快捷方式 ==
快捷方式,属性,新增 -v
看到有输出,即可
mqtt-client安装
mqtt-explorer 下载地址:https://mqtt-explorer.com/
双击直接安装,运行2个客户客户端,连接的host和端口,配置成服务器的运行数据
高级设置,配置client名称,其中Topic # 代表订阅全部主题
service和client监视
client两个
service
service新增匿名访问
配置mosquitto.conf 找到allow_anonymous 设置为false
生成访问密码
== .\mosquitto_passwd.exe -c pwfile.example 新密码==
快捷方式运行 mosquitto.exe -c mosquitto.conf
重新启动service服务
客户端 输入用户名和密码 重新连接service
更多推荐
所有评论(0)