/
Role topic permissions

Role topic permissions

Note: You must provide an MQTT topic path.

MQTT topics can contain wildcards such as “+” and “#” but can also contain two more specific variables. “{userID}” will only match the current user’s ID, and “{deviceName}” will only match the current device’s name.

For example, suppose you have a device named “my_device” and a topic permission set with publish and subscribe permissions on path “/devices/{deviceName}/config”. When that device connects to the broker, it can publish and subscribe to the “/devices/my_device/config” topic but not “/devices/my_other_device/config” or any other topic path.

Related content

Topics Overview (MQTT and Google PubSub)
Topics Overview (MQTT and Google PubSub)
More like this
Certificate based authentication
Certificate based authentication
Read with this
Publishing over MQTT
Publishing over MQTT
More like this