为mqtt连接添加用户名密码
默认没有用户名密码
修改配置文件
添加用户名密码
<plugins> <simpleAuthenticationPlugin> <users> <authenticationUser username="test1" password=123456" groups=users"/> <authenticationUser username=test2654321users,admins"/> </users> </simpleAuthenticationPlugin> </plugins>
添加完效果
重启mqtt
添加用户名连接测试
连接成功