---
schema_version: "1"
id: bf701b5f51dd67f84753ff7f2f7038122c5095ec29164dd3018bf09c8bc0685e
title: MQTT Connector Examples
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mqtt3-connector/latest/mqtt3-connector-examples.md
canonical_url: https://docs.mulesoft.com/mqtt3-connector/latest/mqtt3-connector-examples
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 0ae3beb1730ec6555ea8c294c5af3f0698a1a37337ffd24877eca097fd31e574
description: MuleSoft Documentation Site
release: "1.1"
latest: true
---
---
product: MQTT Connector
version: 1.1
is-latest-version: true
---

# MQTT Connector Examples

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

To fully benefit from using Anypoint Connector for MQTT (MQTT Connector), see the following examples
of configuring the connector:

- [Configure Quality of Service](https://docs.mulesoft.com/mqtt3-connector/latest/mqtt3-connector-quality-of-service)  
  Configure the quality of service (QoS) to specify levels of delivery assurance for inbound or
  outbound messages.

- [Configure the Last Will and Testament Message](https://docs.mulesoft.com/mqtt3-connector/latest/mqtt3-connector-lwt-message)  
  Configure the Last Will and Testament message to notify all the topic subscribers of the client’s
  disconnection from the broker.

- [Set a client ID with MQTT Connector](https://docs.mulesoft.com/mqtt3-connector/latest/mqtt3-connector-client-id)  
  Configure client ID generators that enable you to set a client ID.

- [Listen for New Messages](https://docs.mulesoft.com/mqtt3-connector/latest/mqtt3-connector-listener)  
  Configure the **On New Message** source to listen for messages on a unique or multiple topics, and
  listen for messages on multiple topics using single-level or multilevel wildcards.

- [Publish a Message](https://docs.mulesoft.com/mqtt3-connector/latest/mqtt3-connector-publish)  
  Configure the **Publish** operation to publish a message to the desired topic with a specific
  quality of service.

- [Listen and Publish Messages](https://docs.mulesoft.com/mqtt3-connector/latest/mqtt3-connector-publish-receive)  
  Configure the **On New Message** source and the **Publish** operation to listen and publish
  messages to a specific topic.

- [Deploy MQTT Connector Apps in a Cluster](https://docs.mulesoft.com/mqtt3-connector/latest/mqtt3-connector-cluster)  
  Understand the client ID behavior of MQTT Connector when deploying Mule apps in a cluster.

## See Also

- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)

- [Salesforce Help](https://help.salesforce.com)
