For a generic explanation of the configurations for the Device Module, Channels, Nodes, and Points, please refer to the reference guide.

Summary Information

Communication Driver Name: MQTTspB Implementation DLL: T.ProtocolDriver.MQTTspB.dll

Interface: TCPIP

Protocol: MQTT (Message Queuing Telemetry Transport) is a machine-to-machine (M2M)/”Internet of Things” connectivity protocol. “Sparkplug provides an open and freely available specification for how Edge of Network (EoN) gateways or native MQTT enabled end devices and MQTT Applications communicate bi-directionally within an MQTT Infrastructure.” SparkplugB namespace and Payload format.

PC Hardware Requirements: Ethernet Board.

Implemented Methods: Connect, Disconnect, Subscribe, and Publish.



Channel Configuration

Protocol Options


The Built-in Broker can be started using the Run Broker button.



Node Configuration

Station Configuration

The station syntax is:

BrokerURL ; Port ; [Username] ; [Password] ; [X509Certificate] ;

[SslProtocol] ; [WebSocket] ; [ScadaIIoTHostID]


Where:


All nodes of the same channel share all the device points regardless of which node they were configured for. Setting more than one node for the same channel should be used for MQTT Brokers redundancy.



Point Configuration

Address

The syntax for the MQTT communication points are:

?GroupId?;?EdgeNodeId?;?DeviceId?;?QoS?

Where:

For the EoN Node type of Channel, the edge node ID element of the Sparkplug Topic Namespace uniquely identifies the MQTT EoN node within the infrastructure.


The group ID/Edge Node ID element must be unique from any other group ID/Edge Node ID assigned in the MQTT infrastructure.

This means that each Client (Instance of Devices > Channel) can have only one Edge Node ID, but more than one device ID assigned.



TagProvider

This Communication Protocol supports the TagProvider feature, which is a tool that allows you to access your Communication Device Data Model without creating any Project Tags.

For more information, please refer to the TagProvider document.

How to Configure

To configure the MQTTspB protocol as a TagProvider, navigate to Edit > Tags > Providers, and create a new provider for the MQTT +SparkplubB protocol.

Configure the items under the PrimaryStation column the same way that was described in the Node Configuration.



The parameters configured in the Channel tab are not configured in this TagProvider feature. The default configuration is described below:


The TagProvider for the MQTTspB protocol is Read-Only, meaning you cannot publish data.



Simulator

Troubleshoot

The status of the driver execution can be observed through the diagnostic tools, which are: