Option | Default | Description |
|---|
clientId | camel-<timestamp> | MQTT client identifier. |
brokerUrl
| tcp://localhost:1883
| The URL of the MQTT broker. |
persistence | memory | Client persistence to be used - memory or file. |
filePersistenceDirectory | current directory | (Camel 2.16.1 and 2.17) Base directory used by file persistence. Takes no effect if non-file persistence is used. |
qos | 2 | Client quality of service level (0-2). |
connectOptions | none | The reference to the org.eclipse.paho.client.mqttv3.MqttConnectOptions instance located in the Camel registry. Referenced MqttConnectOptions instance will be used by the endpoint to initialize the connection. For example connectOptions=#myConnectOptions notation can be used to reference Spring bean named myConnectOptions. If there is only a single instance of the MqttConnectOptions in the registry, it will be automatically picked up by the endpoint. |