Skip to main content

Sparkplug B

You can also establish the connection to your devices via Sparkplug B. General information on Sparkplug B can be found here.

Create a new MQTT Sparkplug B connection

logiccloud Broker

The reconnect period specifies how quickly a new connection is attempted if the connection is lost. Clean means that a clean session is started for each new connection without accessing previous value changes in the broker.

Protocol, host name and port are generated automatically and can be used for the connection to the broker. Once you have created the connection, select it in the structure tree. You will see the generated user name User name and the password. You can use these to log in your devices.

Own MQTT broker

The procedure is the same as when using the logiccloud MQTT broker. Click on the Add custom MQTT connection icon and fill in all the information. However, the protocol, host name, port and authentication via user name, password and any certificates for encryption must also be entered.

The client ID should always be unique for each connection and each device, as otherwise the broker may terminate the connection. Owner namespace

A new namespace with the name Owner is automatically defined for each new connection. Sparkplug distinguishes between control and data namespaces ... HJSGADF Right-click on Owner to see the defined Group_id, Node_id and Device_id. These are fixed and cannot be customised. Other Sparkplug participants can subscribe to these topics and receive the data.

In Sparkplug Mapping, you can map the access variables from the program with data type and these are published with the name of the access variable.

Consumer Namespace

To receive data from any Sparkplug participants and subscribe to their topics, you must add a custom Sparkplug connection and enter the broker information. You can then right-click to create a new namespace. This can be given any name, for example Consumer. The variables can be mapped again in the Sparkplug mapping. So that you can receive data from other Sparkplug participants, you must create Access variables with exactly the same name as the published variables. Mapping via aliases or tags as with MQTT is not yet possible.

To receive data from any Sparkplug participants and subscribe to their topics, you must add a custom Sparkplug connection and enter the broker information. You can then right-click to create a new namespace. This can be given any name, for example Consumer. The variables can be mapped again in the Sparkplug mapping. So that you can receive data from other Sparkplug participants, you must create Access variables with exactly the same name as the published variables. Mapping via aliases or tags as with MQTT is not yet possible.