# MQTT

MQTT is an OASIS standard messaging protocol for the Internet of Things (IoT). It is designed as an extremely lightweight publish/subscribe messaging transport that is ideal for connecting remote devices with a small code footprint and minimal network bandwidth. MQTT today is used in a wide variety of industries, such as automotive, manufacturing, telecommunications, oil and gas, etc.

Apica Ascent can act as an MQTT broker to receive MQTT messages from IoT clients.&#x20;

### **PRE-REQUISITE**

**In order to enable this integration, Fluent Bit to MQTT must first be in place.**&#x20;

Follow this link to set up the Fluent Bit integration:&#x20;

* <https://docs.apica.io/integrations/list-of-integrations/fluent-bit/enabling-iot-mqtt-input-paas>

### Sending MQTT messages to Apica Ascent

Once the pre-requisite is in place, Apica Ascent uses the 1883 port to receive MQTT messages. Connectivity can be tested using the following mosquitto\_pub command:

```
mosquitto_pub -h endpoint.ascenthost.com -p 1883 -t temperature -m '{"device_version": "v11", "temp": 92}'
```

Apica Ascent uses the incoming topic name from the messages to partition the data by default. This behavior is customizable.

![](/files/0RcIfng0UeEzvUsFjUQM)

![Using Apica Ascent advanced expressions to Search Data](/files/TLlxvV1a5LMWtdxeLjVK)

![Generate reports on the data](/files/Rslo5nblRtYLZOwx0pmP)


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apica.io/integrations/list-of-integrations/mqtt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
