> For the complete documentation index, see [llms.txt](https://academy.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.pentaho.com/pentaho-data-integration/use-cases/streaming-data/mqtt.md). Agents can also search and read this documentation through its [MCP server](https://academy.pentaho.com/~gitbook/mcp).

# MQTT

Publish / Subscribe

{% hint style="info" %}
**Message Queuing Telemetry Transport**

[MQTT](https://www.influxdata.com/integration/mqtt-monitoring/?utm_source=vendor\&utm_medium=referral\&utm_campaign=2022-04-05_spnsr-ctn_python-mqtt-tutorial_tns) is a standard messaging protocol used for the [Internet of Things](https://www.influxdata.com/solutions/industrial-iot/?utm_source=vendor\&utm_medium=referral\&utm_campaign=2022-04-05_spnsr-ctn_python-mqtt-tutorial_tns) (IoT) because it requires minimal resources and can be executed by small microcontrollers found in connected devices.

IoT devices have a real need for this type of lightweight protocol because it guarantees fast and reliable communication with minimal hardware requirements, keeping power consumption and manufacturing costs low.

IoT devices like smart temperature sensors regularly transmit information over the internet, but before you can deduce any meaningful information from that measurement, you need to store it in an adequate database. Smart sensor measurements are not complex, but they are highly dependent on the time constant — when the measurement was taken — and as a result, time-series databases, like InfluxDB, offer an efficient option to store and manipulate that kind of data.
{% endhint %}

<figure><img src="https://3680356391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZpCSy6Skj215f4oWypdc%2Fuploads%2Fgit-blob-36a997fdf453bf47dbc4393a2251fb20a6c008d9%2Fmqtt.gif?alt=media" alt=""><figcaption><p>MQTT - Publish / Subscribe</p></figcaption></figure>

***


---

# 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://academy.pentaho.com/pentaho-data-integration/use-cases/streaming-data/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.
