Services Use the MQTTbroker service
IX30 User Guide
610
c. Set the pre-shared keys:
i. Add a pre-shared key:
(config)> add service mqtt encryption psk end
(config service mqtt encryption psk 0)>
ii. Set the identity sent to the client:
(config service mqtt encryption psk 0)> indentity value
(config service mqtt encryption psk 0)>
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.
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:
(config service mqtt encryption psk 1)> ... service mqtt
(config service mqtt)>
b. Add a topic:
(config service mqtt)> add topic_acl anonymous end
(config service mqtt topic_acl anonymous 0)>
c. Set the topic:
(config service mqtt topic_acl anonymous 0)> topic value
(config service mqtt topic_acl anonymous 0)>
where value is one of:
l
The topic.
l
The signal level wildcard, +.
l
The multi-level wildcard, #.