环境
测试环境
-
EMQX 版本: 5.0.20
-
操作系统版本:mac
调用后台api:
‘http://emqxwebtest.tf56.lo:30955/api/v5/clients/107732137/authorization/cache’
个别客户端的操作权限缓存 无法获取subscribe 缓存,publish的正常获取
重现此问题的步骤
MQTT v3.1.1 客户端和服务端 MQTT v5.0 协议版本不一样
权限文件配置
{allow,{user,“tf56_cloudparking_platform_dy”},publish,[“#”]}.
{allow,{user,“tf56_cloudparking_platform_dy”},subscribe,[“#”]}.
接口调用返回值:
[
{
"access": "publish",
"result": "allow",
"topic": "/transfar/park/device_01/up",
"updated_time": 1727407033501
},
{
"access": "publish",
"result": "allow",
"topic": "/transfar/park/device_01/onlinestatus",
"updated_time": 1727407012611
}
]
因该还是一个subscribe 的订阅
- xxx
- xxx
- xxx