MQTT Connector Examples
To fully benefit from using Anypoint Connector for MQTT (MQTT Connector), see the following examples of configuring the connector:
- 
Configure 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 
 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 
 Configure client ID generators that enable you to set a client ID.
- 
Listen for New Messages 
 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 
 Configure the Publish operation to publish a message to the desired topic with a specific quality of service.
- 
Listen and Publish Messages 
 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 
 Understand the client ID behavior of MQTT Connector when deploying Mule apps in a cluster.



