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

# 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.

### **PRE-REQUISITE**

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

Follow this link to set up the Fluent Bit integration:

* <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)
