Digi IX40 User Manual page 635

Table of Contents

Advertisement

Services
12. The topic access control lists controls what topics clients can access. If no topics are included,
then clients have access to all topics. If any topics are listed, access is restricted to only the
listed topics.
n
To restrict access for anonymous clients to particular topics:
a. Return to the service mqtt node of the schema:
b. Add a topic:
c. Set the topic:
d. Set the access type to apply to the topic:
IX40 User Guide
iii. Set the pre-shared key:
(config service mqtt encryption psk 0)> key value
(config service mqtt encryption psk 0)>
where value is the pre-shared key in hexadecimal format that is associated
with the client identity.
iv. Add additional keys:
(config service mqtt encryption psk 0)> add .. end
(config service mqtt encryption psk 1)>
Repeat the above steps to set the identity and the pre-shared key.
(config service mqtt encryption psk 1)> ... service mqtt
(config service mqtt)>
(config service mqtt)> add topic_acl anonymous end
(config service mqtt topic_acl anonymous 0)>
(config service mqtt topic_acl anonymous 0)> topic value
(config service mqtt topic_acl anonymous 0)>
where value is one of:
The topic.
l
The signal level wildcard, +.
l
The multi-level wildcard, #.
l
(config service mqtt topic_acl anonymous 0)> access value
(config service mqtt topic_acl anonymous 0)>
where value is one of:
deny
l
read
l
readwrite
l
write
l
The default is readwrite.
Use the MQTT broker service
635

Advertisement

Table of Contents
loading

Table of Contents