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.

  1. Add a new MQTT Publisher manager to your project and set the parameter -num with a new manager id, e.g. -num 2.
  2. Create a new internal datapoint for the MQTT manager.
    Example: _MqttPublisher_Second.
  3. Create a new datapoint group.
    Example:MQTTPub_Second
  4. Set the DPE alias of the internal datapoint _DpGroup.
    The DPE alias must be equal to the previously created datapoint group name.
  5. Add the datapoints that should use the MQTT publisher as for the first broker connection.
  6. 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 datapoint name that has been created previously.
    [mqttpub_2]
    connDp = "MqttPublisher_Second"
  7. 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 datapoint group name that has been created previously.
    [mqttpub_2]
    mqttPubGroup = "MQTTPub_Second"
After following the steps above a new MQTT Publisher manager has been added to the project and it can be used to configure an additional broker to which the project should publish the selected data.