---
schema_version: "1"
id: 6210611bd5e5ccb5ae0a0805181b3e78dc0a580484731503bca9a2a919f0480e
title: MQTT Connector Examples
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mqtt3-connector/1.0/mqtt3-connector-examples.md
canonical_url: https://docs.mulesoft.com/mqtt3-connector/1.0/mqtt3-connector-examples
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 99a08384c80b6aea8ec1308d7d15e9faa2fa0365a3cb0de8612226c991d20766
description: MuleSoft Documentation Site
release: "1.0"
latest: false
---
---
product: MQTT Connector
version: 1.0
---

# 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/1.0/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/1.0/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/1.0/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/1.0/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/1.0/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/1.0/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/1.0/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)
