...
Parameter
| Description
| Required
|
---|---|---|
sequential | The behaviour when executing the given sequence. | Yes |
coordination | In a cluster setup, if set to true, the inbound endpoint will run only in a single worker node. If set to false, it will run on all worker nodes. | Yes |
suspend | If set to true, the inbound listener will not accept incoming request messages from clients and will not inject messages to the synapse message mediation. If set to false, incoming messages will be accepted. | Yes |
mqtt.connection.factory | Name of the connection factory. | Yes |
mqtt.server.host.name | Address of the message broker (eg., localhost). | Yes |
mqtt.server.port | Port of the message broker (e.g., 1883). | Yes |
mqtt.topic.name | MQTT topic to which the message should be published. | Yes |
mqtt.subscription.qos | The quality of service level that need to be maintained with the subscription. The quality of service level can be either 0,1 or 2. 0 - Specifying this level ensures that the message delivery is efficient. However, specifying this level does not guarantee that the message will be delivered to its recipient. 1 - Specifying this level ensures that the message is delivered at least once, but this can lead to messages being duplicated. 2 - This is the highest level of quality of service. Specifying this guarantees that the message is delivered and that it is delivered only once. | No |
mqtt.client.id | The id of the client. | No |
content.type | The content type of the message. (i.e., XML or JSON) | Yes |
mqtt.session.clean | Whether the client and server should remember the state across restarts and reconnects. | No |
mqtt.ssl.enable | Whether to use tcp connection or ssl connection. | No |
mqtt.subscription.username | The username for the subscription. | No |
mqtt.subscription.password | The password for the subscription. | No |
mqtt.temporary.store.directory | Path of the directory to be used as the persistent data store for quality of service purposes. | No |
mqtt.blocking.sender | Whether to use blocking sender for sending the messages. | No |
Samples
For a sample that demonstrates how the MQTT connector publishes a message on a particular topic and how a MQTT client that is subscribed to that topic receives it, see Sample 906: MQTT Inbound Endpoint Sample.