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

# MQTT

Skysens AgPM can be connect your MQTT broker and subscribes a topic to receive data.

For Adding A MQTT source, select MQTT on add new source menu.&#x20;

<figure><img src="/files/TuBBFcrtGk5AZC9NorQD" alt=""><figcaption><p>Add New Source</p></figcaption></figure>

Adding a MQTT source is three-step process: Source Information, Topic Information and Field Information.&#x20;

<figure><img src="/files/VfigXk8hPQF7ZwN4ql3x" alt=""><figcaption></figcaption></figure>

**Source Information**

To begin receiving device data, we must first establish a connection to an MQTT broker. This broker acts as the central hub, routing messages between the device and our system.

Name: Descriptive name for your MQTT device

Url: MQTT broker's public host name or IP address

Port: MQTT broker's port number

If your broker have some authentication method then select "Use Authentication" and enter the details.

<figure><img src="/files/rAN0aZGqJBaiTXNbqFlN" alt=""><figcaption></figcaption></figure>

**Topic Information**

Topic is a string-based address used by the broker to route messages between publishers and subscribers, enabling organized, decoupled communication via a hierarchical structure and optional wildcards.

<figure><img src="/files/E2ro8X4FjRdJDBw73yL8" alt=""><figcaption></figcaption></figure>

**Field Information**

Field Name: An identifier for MQTT data object

Field Key: Key name on MQTT data object

Unit: Reading data's unit&#x20;

Format: Data format. Such as: int32, float&#x20;
