MQTT is one of the external communication protocols you can use on the Kuika platform. You can easily integrate your existing MQTT infrastructure into Kuika applications. MQTT is a lightweight protocol with low bandwidth requirements, making it ideal for IoT (Internet of Things) applications.
Using MQTT, you can enable fast and reliable data flow between devices. This guide covers how to integrate MQTT, the process of creating a HiveMQ Cloud subscription, configuring connection settings, and the steps required to send and receive messages via MQTT.


Note: You can also start the process of adding a new data source by clicking the + icon next to the Sources heading in the left panel.
After these steps, the MQTT connection settings screen opens. If you do not have an MQTT broker yet, you can follow the HiveMQ Cloud steps below before entering your connection information.
HiveMQ Cloud is an IoT platform that supports the MQTT protocol. You can create an MQTT broker and connect your devices using the HiveMQ Console.
After completing these steps, you can send (publish) messages or listen for (subscribe to) messages on a specific topic.
In MQTT, a topic enables the filtering of messages. A hierarchical structure separated by slashes (/) is used.
Examples:
In MQTT, the QoS level determines the reliability of message delivery.
The Retain feature ensures that messages are stored on the broker and forwarded to newly connected clients.
Example: If a temperature value is sent with Retain, all clients newly connecting to this topic can see that value.
To clear a Retain message, an empty message with `retain true` must be sent.
After creating the MQTT data source, enter the connection details on the screen that appears. At the top of the screen, you’ll find the back button (←), the data source name (pencil icon to edit the name), and the CREATE button to save the settings.

Contains the broker information Kuika will connect to.
These are the authentication credentials sent to the broker during connection.
These are the security settings applied to the connection address defined in the Broker section.
The CREATE button saves the connection and automatically adds the Publish and Subscribe actions associated with this data source. You can use these actions in your application in later steps.
With the Subscribe action, you can automatically subscribe to a specific topic.
The user can view messages sent to the specified topic. You can also add additional actions:
All users subscribed to this topic will receive the message.
This tutorial will help you quickly set up an MQTT connection, exchange messages, and integrate your applications with MQTT on the Kuika platform.