爲mqtt鏈接添加用戶名密碼測試
默認沒有用戶名密碼spa
修改配置文件3d
添加用戶名密碼code
<plugins> <simpleAuthenticationPlugin> <users> <authenticationUser username="test1" password="123456" groups="users"/> <authenticationUser username="test2" password="654321" groups="users,admins"/> </users> </simpleAuthenticationPlugin> </plugins>
添加完效果blog
重啓mqttget
添加用戶名鏈接測試it
鏈接成功io