SmartSwarm 300 Series
:
104
●
If the slave Meta data is changed at some point in time the MQTT Topic string will NOT be automatically
updated for any existing rules. This is to prevent problems for any MQTT clients which may have already
been configured to subscribe to the old topic string.
●
The pre-filled MQTT Topic field can be overwritten by the user at any time.
For every individual rule, MQTT publishes on the custom topic can be disabled by specifying an empty string in the
“MQTT Topic” field.
10.4.2 DEFAULT TOPIC SPACE
For every individual rule, MQTT publishes on the default topic can be disabled by un-ticking the checkbox for
“Default Topic”.
The default topic string is
always
of the form:
<Swarm_ID>/<Device_ID>/<Port_ID>/<Slave_ID>/<RegisterType>/<Event>
For example, a typical topic string is “0/700000/1/1/HR/SCHEDULING”.
Field
Description
Swarm_ID
Always ‘0’ for devices which are not part of a Swarm.
Device_ID
The serial number of the device, as printed on the hardware label.
If the “Device ID” in SmartWorx Hub appears as “203-01-6200799”, then the Device_ID
field is just the last 7 digits: “6200799”.
Port_ID
0 = RS-232
1 = RS-485
Slave_ID
The address of the Modbus Slave which is providing the payload information.
RegisterType
CS: Coil
IS: Discrete Input
IR: Input Register
HR: Holding Register
Event
All Discrete Input registers on this slave will be published.
Read: “READ”
Change: “CHANGE”
Delta: “DELTA”
High Threshold: “HI”
Low Threshold: “LO”
High Rate: “RATE-HI”
Low Rate: “RATE-LO”
Scheduled: “SCHEDULING”
Global Read: “READ”
Global Change: “CHANGE”
Table 38. The Default Topic
One extra field is appended to the default topic string in certain situations: