Add an additional broker connection
The necessary configuration steps to add an additional broker to the project.
These steps must be taken to add an additional broker to your project.
-
Add a new MQTT Publisher manager to your project and set the parameter -num with a new manager id, e.g.
-num 2
. -
Create a new internal data point for the MQTT manager.
Example:
_MqttPublisher_Second
. -
Create a new data point group.
Example:
MQTTPub_Second
-
Set the DPE alias of the internal data point
_DpGroup
.The DPE alias must be equal to the previously created data point group name. - Add the data points that should use the MQTT publisher as for the first broker connection.
-
Add the config entry
connDp
to the section[mqttpub_X]
, where X represents the manager ID selected in the first step. The config entry must be set to the internal data point name that has been created previously.[mqttpub_2] connDp = "MqttPublisher_Second"
-
Add the config entry
mqttPubGroup
to the section[mqttpub_X]
, where X represents the manager ID selected in the first step. The config entry must be set to the data point group name that has been created previously.[mqttpub_2] mqttPubGroup = "MQTTPub_Second"