Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
EMQ X Edge 4.2.9 - Add User and ACL (emqx_auth_mnesia module)
[{
"login": "esp32-device",
"topic": "esp32/telemetry_data",
"action": "pub",
"allow": true
},
{
"login": "esp32-device",
"topic": "esp32/telemetry_data",
"action": "sub",
"allow": false
},
{
"login": "esp32-device",
"topic": "esp32/relay_00_status",
"action": "pub",
"allow": true
},
{
"login": "esp32-device",
"topic": "esp32/relay_01_status",
"action": "pub",
"allow": true
},
{
"login": "esp32-device",
"topic": "esp32/relay_02_status",
"action": "pub",
"allow": true
},
{
"login": "esp32-device",
"topic": "esp32/relay_03_status",
"action": "pub",
"allow": true
},
{
"login": "esp32-device",
"topic": "esp32/relay_00_status",
"action": "sub",
"allow": false
},
{
"login": "esp32-device",
"topic": "esp32/relay_01_status",
"action": "sub",
"allow": false
},
{
"login": "esp32-device",
"topic": "esp32/relay_02_status",
"action": "sub",
"allow": false
},
{
"login": "esp32-device",
"topic": "esp32/relay_03_status",
"action": "sub",
"allow": false
},
{
"login": "esp32-device",
"topic": "esp32/command",
"action": "sub",
"allow": true
},
{
"login": "esp32-device",
"topic": "esp32/command",
"action": "pub",
"allow": false
}
]
[{
"login": "gw-rpi4-device",
"topic": "esp32/telemetry_data",
"action": "pub",
"allow": false
},
{
"login": "gw-rpi4-device",
"topic": "esp32/telemetry_data",
"action": "sub",
"allow": true
},
{
"login": "gw-rpi4-device",
"topic": "esp32/relay_00_status",
"action": "pub",
"allow": false
},
{
"login": "gw-rpi4-device",
"topic": "esp32/relay_01_status",
"action": "pub",
"allow": false
},
{
"login": "gw-rpi4-device",
"topic": "esp32/relay_02_status",
"action": "pub",
"allow": false
},
{
"login": "gw-rpi4-device",
"topic": "esp32/relay_03_status",
"action": "pub",
"allow": false
},
{
"login": "gw-rpi4-device",
"topic": "esp32/relay_00_status",
"action": "sub",
"allow": true
},
{
"login": "gw-rpi4-device",
"topic": "esp32/relay_01_status",
"action": "sub",
"allow": true
},
{
"login": "gw-rpi4-device",
"topic": "esp32/relay_02_status",
"action": "sub",
"allow": true
},
{
"login": "gw-rpi4-device",
"topic": "esp32/relay_03_status",
"action": "sub",
"allow": true
},
{
"login": "gw-rpi4-device",
"topic": "esp32/command",
"action": "sub",
"allow": false
},
{
"login": "gw-rpi4-device",
"topic": "esp32/command",
"action": "pub",
"allow": true
}
]
[{
"login": "mqtt-dashboard",
"topic": "esp32/telemetry_data",
"action": "pub",
"allow": false
},
{
"login": "mqtt-dashboard",
"topic": "esp32/telemetry_data",
"action": "sub",
"allow": true
},
{
"login": "mqtt-dashboard",
"topic": "esp32/relay_00_status",
"action": "pub",
"allow": false
},
{
"login": "mqtt-dashboard",
"topic": "esp32/relay_01_status",
"action": "pub",
"allow": false
},
{
"login": "mqtt-dashboard",
"topic": "esp32/relay_02_status",
"action": "pub",
"allow": false
},
{
"login": "mqtt-dashboard",
"topic": "esp32/relay_03_status",
"action": "pub",
"allow": false
},
{
"login": "mqtt-dashboard",
"topic": "esp32/relay_00_status",
"action": "sub",
"allow": true
},
{
"login": "mqtt-dashboard",
"topic": "esp32/relay_01_status",
"action": "sub",
"allow": true
},
{
"login": "mqtt-dashboard",
"topic": "esp32/relay_02_status",
"action": "sub",
"allow": true
},
{
"login": "mqtt-dashboard",
"topic": "esp32/relay_03_status",
"action": "sub",
"allow": true
},
{
"login": "mqtt-dashboard",
"topic": "esp32/command",
"action": "sub",
"allow": false
},
{
"login": "mqtt-dashboard",
"topic": "esp32/command",
"action": "pub",
"allow": true
}
]
[{
"login": "esp32-device",
"password": "esp32-device",
"is_superuser": false
},
{
"login": "gw-rpi4-device",
"password": "gw-rpi4-device",
"is_superuser": false
},
{
"login": "mqtt-dashboard",
"password": "mqtt-dashboard",
"is_superuser": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment