环境信息
- EMQ X 版本:4.3.5
- 操作系统及版本:centos 7.5
- 其他
问题描述
下面的配置想达到以下效果,可是不生效:
只有ecpp能订阅$SYS/#主题和推送+/updateVersion +/paymentResult +/deviceLogout +/grayScaleTest +/updateKey
所有的用户都能订阅+/updateVersion +/paymentResult +/deviceLogout +/grayScaleTest +/updateKey
配置文件及日志
{allow, {user, "dashboard"}, subscribe, ["$SYS/#"]}.
{allow, {ipaddr, "127.0.0.1"}, pubsub, ["$SYS/#", "#"]}.
{allow, {user, "ecpp"}, subscribe, ["$SYS/#", "#"]}.
{allow, {user, "ecpp"}, pubsub, ["+/updateVersion", "+/paymentResult", "+/deviceLogout", "+/grayScaleTest", "+/updateKey"]}.
{allow, all, subscribe, ["+/updateVersion", "+/paymentResult", "+/deviceLogout", "+/grayScaleTest", "+/updateKey"]}.