Page Tree
Previous Releases
...
When you open the TMQTTBroker.exe.config file, you will find all of the possible configured parameters. The parameters will be in comments between surrounded by (<!−− −−>). To set a specific parameter, you need to move the whole line of the parameter outside the comments (<!−− −−>) but keep it in the section <configuration> <appSettings>.
...
...
The password can be a string (with no encryption ) or an encrypted password. To encrypt a password you can use in any coder (ex. Visual Studio), use the following code:
...
DisableRetainedFile: The broker stores the last retained message and the corresponding QoS for that topic. The valid value is true or false. The default is false.
ClientID: This parameter enables limitations for specific MQTT clients. To configure more than one MQTT client, you need to create a whole new line and change the last number to the next sequence number.
Code Block |
---|
add key="ClientID1" value="<MQTTClientID>; Topic1=<Topic>, Subscribe1=<True or False>, Publish1=<True or False>" /> |
There are 4 internal parameters:
Publish: flag Flag (true or false) that allows the client to publish a topic (can write messages)
Code Block |
---|
<add key="ClientID1" value="MQTTClientTest;Topic1=*,Subscribe1=True, Publish1=True"/> <add key="ClientID2" value="32443fsa6546fa;Topic1=*,Subscribe1=True, Publish1=False"/> <add key="ClientID3" value="7323rt304343r4;Topic1=*,Subscribe1=False,Publish1=True"/> |
...
...
...
The TMQTTBroker can be implemented in two ways. It can be used as a simple gateway that exchanges data between any MQTT client or through a direct connection with runtime projects by publishing project data for MQTT clients using the SparkplugB specification.
...
In this scenario, the TMQTTBroker only exchanges data between MQTT clients following the SparkplugB specification or not. Then, the clients are responsible to subscribe and publish topics to the Broker. All topic formats are shown in this scenario.
...
In this scenario, the TMQTTBroker connects with one, and then connects with several to one or more runtime projects through the TServer. It only publishes the project data for topics by following the SparkplugB specification.
...
Code Block |
---|
spBv1.0/<Group_Id>/<message_type>/<Project_Name>/<MQTT_Device_Name> |
Where the:
...