Services Use the MQTTbroker service
IX10 User Guide
595
l
readwrite
l
write
The default is readwrite.
e. Add additional topics:
(config service mqtt topic_acl anonymous 0)> add .. .. anonymous
end
(config service mqtt topic_acl anonymous 1)>
f. Repeat the above steps to set the topic and access type.
n
To restrict access to topics based on pattern substitution:
a. Return to the service mqtt node of the schema:
(config service mqtt encryption psk 1)> ... service mqtt
(config service mqtt)>
b. Add a topic:
(config service mqtt)> add topic_acl pattern end
(config service mqtt topic_acl pattern 0)>
c. Set the topic:
(config service mqtt topic_acl pattern 0)> topic value
(config service mqtt topic_acl pattern 0)>
where value is one of:
l
The topic.
l
The variable %c as a substitute for the client ID.
l
The variable %u as a substitute for the username.
If a variable is used, it can be the only text for that level of the hierarchy.
d. Set the access type to apply to the topic:
(config service mqtt topic_acl pattern 0)> access value
(config service mqtt topic_acl pattern 0)>
where value is one of:
l
deny
l
read
l
readwrite
l
write
The default is readwrite.
e. Add additional topics:
(config service mqtt topic_acl pattern 0)> add .. .. pattern end
(config service mqtt topic_acl pattern 1)>
f. Repeat the above steps to set the topic and access type.