> For the complete documentation index, see [llms.txt](https://docs.qubitro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qubitro.com/data-sources/mqtt.md).

# MQTT

Publish device data to Qubitro using the lightweight MQTT protocol for real-time ingestion.

MQTT is a lightweight publish/subscribe messaging protocol designed for IoT applications.&#x20;

Qubitro supports both MQTT v3.1.1 and MQTT v5.0, enabling secure and efficient data transmission from devices.

### Specifications

| Parameter      | Description                        |
| -------------- | ---------------------------------- |
| Broker Address | broker.qubitro.com                 |
| Port (SSL/TLS) | 8883 (encrypted)                   |
| Port (TCP)     | 1883 (unencrypted)                 |
| Topic          | Device ID (provided by Qubitro)    |
| Client ID      | Device ID (provided by Qubitro)    |
| QoS            | Quality of Service Levels          |
| QoS Level 2    | Exactly once                       |
| QoS Level 1    | At least once                      |
| QoS Level 0    | At most once                       |
| Password       | Device Token (provided by Qubitro) |
| Username       | Device ID (provided by Qubitro)    |

{% hint style="danger" %}
Both the **Client ID** and the **Topic** must be set to the **Device ID**; otherwise, even if the connection and authentication succeed, Qubitro will not automatically store or display the published data.
{% endhint %}

### Create an MQTT Source

{% stepper %}
{% step %}
**Navigate to the Project Detail Page**

Go to the project where you want to create an MQTT source.
{% endstep %}

{% step %}
**Create a New Source**

Click **New Source**, then select **MQTT** from the available options.
{% endstep %}

{% step %}
**Fill Out the Required Information**

Enter details according to your configuration needs.
{% endstep %}

{% step %}
**Create & Verify**

Click **Create**. Qubitro automatically generates the **Device ID** and **Device Token**. You can find these credentials in the **Device Overview** or **Device Settings** under the **Unique IDs** card.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.qubitro.com/data-sources/mqtt.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
