
10.1 MQTT
10 IIoT functionality
10.1.2 MQTT topics
MQTT mainly relates to topics. All messages are attached to a topic which
adds context to the message itself. Topics may consist of any string and they
are allowed to contain slashes
(/)
as well as wildcard symbols
(*, #)
.
10.1.2.1 Base topic
For LioN-X and the LioN-Xlight variants there is a configurable
Base topic
which is the prefix for all topics. The
Base topic
can be chosen freely by the
user. The
Base topic
can also contain selected variables as shown in
on page 94.
Variables in the
Base topic
have to be written in brackets ("[ ]"). The following
variables are possible:
Variable
Description
mac
The MAC address of the device
name
The name of the device
order
The ordering number of the device
serial
The serial number of the device
Table 12: Base topic variables
Example:
The
Base topic
"io_[mac]"
translates to
"io_A3B6F3F0F2F1"
.
All data is organized in domains. The domain name is the first level in the
topic after the
Base topic
. Note the following notation:
Base-Topic/domain/.….
Manual EtherCAT®
Version 1.1 04/2021
94