MQTT

This chapter summarizes the MQTT feature available in ELIONA.

MQTT - The standard for IoT messaging

MQTT is an OASIS standard messaging protocol for the Internet of Things (IoT). It is designed as a lightweight publish/subscribe message transport that is ideal for connecting remote devices with low code footprint and minimal network bandwidth. MQTT is used in a wide range of industries today, such as automotive, manufacturing, telecommunications, oil and gas, etc. An MQTT broker is a server that receives all messages from the MQTT clients (publishers) and then forwards the messages to the corresponding target clients (subscribers). The broker is the heart of every publish/subscribe protocol.

MQTT Overview

  1. Connections: List of all created Connections/Brokers.

  2. Sort connection: Sort the connections.

  3. Open Connection: Click the arrow or name to open the connections.

Create Connection/Broker

  1. Name: Enter the name of the connection.

  2. Client ID: Enter the client ID.

  3. Host: Enter the host.

  4. Port: Enter the port.

  5. User name: Enter the login of a user.

  6. Password: Enter the password of the user.

  7. Connection Timeout: Time in seconds to wait for a timeout to occur.

  8. Maintain connection: Time in seconds that the connection should be maintained.

  9. SOCKS5 Proxy Host: Enter the host name for the SOCKS5 proxy server.

  10. SOCKS5 Proxy Port: Enter the port for the SOCKS5 proxy server.

  11. Proxy Login: Enter the login for the proxy server.

  12. Proxy Password: Enter the password of the proxy login.

  13. Save: Click the Save button to keep the changes.

  14. Connection Status: Here you can see whether the connection is enabled or disabled.

  15. Subscriptions list: List of existing subscriptions.

  16. Configure Subscription: Click > to configure the subscription.

  17. Publication List: List of existing publications.

  18. Configure publication: Click > to configure the publication.

Subscription

After the broker has been set up, any number of target clients can be connected, e.g. a mobile device. Subscriptions must be set up for this.

  1. MQTT Explorer: Select a file in the file structure to get the path of the file.

  2. Name: Enter the name of the subscription.

  3. Topic: Enter the topic of the subscription.

  4. QoS: Select QoS.

  5. Single/Multiple Formats: Select single or multiple formats.

  6. Configure pair: How should the messages received with this subscription be decoded? Single: Each message will be decoded according to a selected format. Multiple: Define any number of "pattern - format" pairs. This option is available only for subscriptions with topics containing a wildcard (+ and/or #). It allows messages to be forwarded to different formats based on the actual topic in which the message was received. For example, if you subscribe to the topic "building/storey/level_one/#" and there are messages from different sensors with different payload layouts under the "#" placeholder, you can forward them as follows: 'building/storey/level_one/ambi*' → format01, 'building/storey/level_one/hum*' →. Format02, etc.

  7. Save: Click the Save button to keep the changes.

Publication

  1. Name: Enter the name of the subscription.

  2. Topic: Enter the topic of the subscription.

  3. QoS: Select QoS.

  4. Select Format: Select a format.

  5. Save: Click the Save button to keep the changes.

Last updated