MQTT Connections
- Last UpdatedAug 20, 2024
- 3 minute read
The MQTT Connections allow you to configure connection details to MQTT, based on WebSockets, in the Enterprise Console. These connections then can be used to access data from external systems.
The tested Message Broker versions are:
-
RabbitMQ version 3.7.2
-
Mosquitto version 1.5.4
To Configure MQTT Connection Details
-
Log on to the Enterprise Console.
-
On the menu, click Tools and then click MQTT Connections.
The MQTT Connections page appears.
-
Click New and then click Item.
The New MQTT Connection window appears.
-
Enter the required connection information, and then click Save.
The configuration is saved, and an information message appears.
Note: See Connection Information for more details.
-
Click Close.
The information message is closed.
Connection Information
The connection information required to create an MQTT Connection is as follows.
|
Field Name |
Description |
|---|---|
|
Name (Mandatory) |
Name for the MQTT Connection. |
|
Description |
Descriptive name for the MQTT Connection. |
|
Server (Mandatory) |
IP address of the MQTT server. |
|
Port (Mandatory) |
Port number of the WebSocket protocol in the MQTT server. The default value is 8080. Note: The Broker should be enabled with WebSockets. |
|
Secure Connection |
Allow or disallow secure WebSocket.
The default value is No. Note: For secure WebSocket, ensure to install CA Root Certificate on client under Trusted
Root Certification Authorities. |
|
WebSocket Endpoint (Mandatory) |
Enter the WebSocket Endpoint. For example, mqtt or ws. The default value is mqtt. |
|
Client ID Prefix |
Client ID prefix for the MQTT Connection, if required. |
|
Anonymous |
Allow or disallow all users.
The default value is No. |
|
User Name (Mandatory) |
User ID for the MQTT Connection. Note: User Name is not available if Anonymous is set to Yes. |
|
Password (Mandatory) |
Password for the MQTT Connection. Note: Password is not available if Anonymous is set to Yes. |
|
MQTT Version |
Version of the MQTT. The default value is 3.1.1. |
|
Reconnection Attempts (Mandatory) |
Number of times to try connecting when the MQTT Connection fails. The range is between -1 to 20. If the value is set to -1, then there is no limit to the number of attempts, and if the value is set to 0, then there will be no attempts. The default value is 3. |
|
Reconnection Period (Mandatory) |
Time (in milliseconds) between the connection attempts when the MQTT Connection fails. The range is between 10000 to 300000. The default value is 30000. |
|
Quality of Service |
Quality of service for the MQTT Connection.
|
|
Update Rate (Mandatory) |
Time (in milliseconds) at which data is updated. The range is between 0 to 3600000. If the value is set to 0, then the data is updated immediately. The default value is 0. |
To test MQTT Connection
-
In the MQTT Connection window, click Test Connection.
The configuration is tested, and an information message appears.
-
Click Close.
The information message is closed.
Note: When packaging artifacts that make use of MQTT Connections, the connections should be recreated at the destination.