Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Inside the product installation folder, you will find an executable file called TMQTTBroker.exe. To run it, double click on the file. Once the file is running, a blue icon will appear in the Windows tray bar. MQTT Broker   will run by how it is configured in the TMQTTBroker.exe.config file. You can fine more information regarding this in the next section. 

...

In this scenario, the TMQTTBroker connects with one, and then connects with several runtime projects through the TServer. It only publishes the project data for topics by following the SparkplugB specification.

...

  • Group Id: is a name that is configured in the .config
  • Message Type: The following message type elements are defined for the Sparkplug specification. Almost of the clients that support SparkplugB should set the message type automat-
  • NBIRTH – Birth certificate for MQTT EoN
  • NDEATH – Death certificate for MQTT EoN
  • DBIRTH – Birth certificate for
  • DDEATH – Death certificate for
  • NDATA – Node data
  • DDATA – Device data
  • NCMD – Node command
  • DCMD – Device command
  • STATE – Critical application state
  • Project Name: is the same name configured in the .config
  • MQTT Device Name: it can be a namespace or an object from the runtime project. Individual objects should be avoided and uses the namespaces for performance

...

In the Nodes tab, the primary station is configured in configured using the following syntax below:

Code Block
<BrokerURL> ; <port> ; [Username] ; [Password] ; [X509Certificate] ; [QoS]

...

Where, Username, Password, X509Certificate, and QoS are optional.

In the Points tab, you need to configure the topic so that your variable may can publish or subscribe to messages according to its AccessType. More information on each item is available in the MQTT driver documentation.

...

Mosquitto Client (without SparkPlugB)

Clients can connect with TMQTT Brokers the same way they connect to other available Brokers (e.g: mosquitto). 

...

To set up a communication between MQTT + SparkPlug Driver and the TMQTT Broker, the first step is to create a Channel using this protocol.

In the Engineering Environmentenvironment, go to Edit > Devices > Edit>Devices>Channels and find the desired protocol inside the list.


In the ProtocolOptions column ProtocolOptions, there are some fields that must be filled., you need to fill out the following fields:

  • Type;
    • Application Node;
    • Scada IIoT Host;
    • EoN

...

More information on each item is available in the MQTT + SparkPlugB driver documentation. In the Nodes tab, the primary station is configured in configured using the following syntax below:

Code Block
<BrokerURL> ; <port> ; [Username] ; [Password] ; [X509Certificate] ; [SslProtocol] ; [WebSocket] ; [ScadaIIoTHostID]

...

The topics are configured using the following syntax.:

Code Block
<GroupId>;<EdgeNodeId>;<DeviceId>;<QoS>

...