Skip to main content
Version: 5.3

MQTT Plug-in

You set the following properties in the configuration of the MQTT plug-in:

Router configuration:

NameAssign a unique name to the MQTT connection.
Cloud profileChoose here between the MQTT standard, AWS, Azure IoT or Wago cloud.
Keep alive (s)The ping interval in which the OPC Router sends a ping to the server. If no data comes in the interval, the router will abort the wait.
Wait for transferWait for transfer causes the router to respond to the broker only after the transfer has completed or failed.

Cloud profile:

note

For more information on using MQTT and the Cloud Profiles, see our Knowledge Base at:
https://www.opc-router.com/knowledge-base/

You can switch between different cloud profiles, which have different properties:

AWS:

API endpoint addressEnter the address for the connection to the AWS Cloud here.
Import new certificateSelect this item if you want to import a new certificate.
CertificateSelect here the certificate from the AWS IoT Cloud.
Private key fileSelect here the file from the AWS IoT Cloud. You can download this file beforehand. You can find more information about this on our Knowledge Base.
Select existing certificateSelect this item if you want to select a certificate from the OPC Router Store or if you want to create a new certificate.
Client certificateSelect a certificate from the OPC Router Store or create a new certificate.

Azure IoT:

For instructions on how to create a connection in Azure IoT Cloud, please visit our Knowledge Base.

Host nameThe name of the connection to the Azure IoT Cloud.
Shared access key nameThe name of the policy to the Azure IoT Cloud.
Shared access keyEnter the key to establish a secure connection.
Enter connection stringOpen the pop-up to enter the connection string.
DeviceIDEnter the Device ID for the device here.
Time to live (days)

Enter here the Duration of validity which is generated from the access key. When the time is expired, a new token is generated from the access key.

Important: The shared access key does not need to be replaced.

Primary device keySelect here if it should be a Primary Device.
Secondary device KeySelect here if it should be a Secondary Device.

Wago Cloud:

End pointThe destination to which the data is sent from the field level.
DeviceIDEnter your DeviceID. You can find it in your Wago Cloud account.
Activation keyEnter your activation key. The activation key can be found in your Wago Cloud account.

Connection settings

Broker connectionEnter the address of the broker
PortPort on the server used for the MQTT connection
SSLUses SSL encryption. The server must support this, the corresponding Port must be set.
Persistent sessionActivate if a persistent connection is desired. Missed messages are sent afterwards.
Timeout (ms)Length of time to wait to see if a connection can be re-established.
SSL protocolChoose the protocols.
Client IDDisplay of the Client ID. The button “Create new Client ID” creates a new ID.
Create new Client IDCreates a new Client ID that is displayed in the Client ID field.
UsernameUsername for logging in to the server.
PasswordPassword for logging in to the server.
Client certificateSelection of a client certificate from the drop-down list, which the OPC Router also sends.
Trusted certificatesSelect which certificates to accept. For example, all certificates, Windows certificates only, or router certificates only.
MQTT versionSelect the MQTT protocol version from the drop-down menu.
Quality of service type

Selection the Standard Quality of Service:

  • 0 = at most once
  • 1 = at least once
  • 2 = exactly one
warning

The Client ID must be unique and independent. There may only be one client ID per server, otherwise errors may occur in the plug-in.

Tab: First Will

First Will aktivierenActivate checkbox to activate the “First will” checkbox. Activity when establishing a connection.
TopicSpecifies which topic the first will to look at.
PayloadSpecifies which user data is to be transmitted during communication.
Quality of service

Selection the Quality of Service:

  • 0 = at most once
  • 1 = at least once
  • 2 = exactly one
Retain First WillActivate if you want the broker has to hold the data.

Tab: Last Will

Activate last willActivate checkbox to activate the last will. Activity before a connection termination.
TopicSpecifies which topic the load should look at.
PayloadSpecifies which user data has to be transmitted during communication.
Quality of Service

Selection the Quality of Service:

  • 0 = at most once
  • 1 = at least once
  • 2 = exactly one
Retain Last WillActivate if you want the broker has to hold the data.
Send Last Will on disconnectionActivate if the last will to be sent even when the connection is terminated.