Versions Compared

Key

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

...

Gateway + Connected to Project

In this scenario, the TMQTTBroker will work  works as the last two scenarios together. As a simple gateway exchange any data between the MQTT Clients and publishing data projects to the topics that match the project configuration in the TMQTTBroker.exe.config.

...

To set up a communication between the TMQTTBroker and the MQTTdriver, the first step is to create a Channel using this protocol.

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



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

...

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

In the Points tab, you need to configure the Topic in which topic so that your variable may 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)

The TMQTT Broker can have other clients connect to it in Clients can connect TMQTT Brokers the same way as others Brokers available they connect to other available Brokers (e.g: mosquitto). 

In order to test itthe connection, you can use mosquitto (Mosquitto as a publisher or as a subscriber). The syntax required to publish a message and subscribe to a topic with mosquitto Mosquitto is:

Code Block
mosquitto_pub -p <portNumber> -t <Topic> -m <Message>
mosquitto_sub -p <portNumber> -t <Topic>

...