MQTT Brokers

To Add a MQTT Broker:

  1. In the Workbench, expand a project and the expand the Internet of Things node. Right-click on the MQTT Brokers node, as shown below, and then click on Add MQTT Broker.

Add MQTT Broker from Project Explorer in the Workbench

 

-OR-

 

Select MQTT Brokers then click on the Add MQTT Broker button (shown below) in the Edit section of the Home ribbon in the Workbench.

 

Add MQTT Broker Button

  1. This opens the MQTT Broker properties window, as shown below, in the Workbench. Enter a Name for the MQTT Broker in the top text entry field.

MQTT Broker Properties in the Workbench

 

Broker Settings

Security Settings

Note: Some cloud services (e.g. Amazon Cloud) require client certificate to be combined with the client key in Windows PFX certificate file format. Use the following command to create such PFX: “openssl pkcs12 -export -inkey MyThing.private.key -in MyThing.cert.pem -out MyThing.p12”, while replacing "MyThing" with the name of your device. Then import the certificate to the Windows system in the Local Machine - Personal certificate store.

MQTT Birth Message

MQTT Will Message

  1. When you have completed your settings, select the Apply button and then Close to return to the Workbench. Your new MQTT Broker will now appear in the Project Explorer.

See Also:

IoTWorX Configuration in Workbench

Internet of Things Node

Publisher Connections

Custom Encoders/Decoders

Collection Groups

Analyzer Groups

Logger System Settings

Loggers

Publish Lists

Subscriber Connections

Nodes