camel-mqtt-source-kafka-connector source configuration
Connector Description: Allows receiving messages from any endpoint that supports the MQTT protocol, such as a message broker.
When using camel-mqtt-source-kafka-connector as source make sure to use the following Maven dependency to have support for the connector:
<dependency>
<groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-mqtt-source-kafka-connector</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel Kafka connector version -->
</dependency>
To use this source connector in Kafka connect you’ll need to set the following connector.class
connector.class=org.apache.camel.kafkaconnector.mqttsource.CamelMqttsourceSourceConnector
The camel-mqtt-source source connector supports 5 options, which are listed below.
Name | Description | Default | Priority |
---|---|---|---|
Required The topic to subscribe to Example: mytopic. |
HIGH |
||
Required The URL of the broker where to establish the connection Example: tcp://mosquitto:1883. |
HIGH |
||
The client ID to use when connecting to the resource. |
"mqtt-source" |
MEDIUM |
|
Username to use when connecting to the MQTT broker. |
MEDIUM |
||
Password to use when connecting to the MQTT broker. |
MEDIUM |
The camel-mqtt-source source connector has no converters out of the box.
The camel-mqtt-source source connector has no transforms out of the box.
The camel-mqtt-source source connector has no aggregation strategies out of the box.