第 230 章 MQTT 组件

作为 Camel 2.10 版本提供

mqtt: 组件用于与 MQTT 兼容消息代理(如 Apache ActiveMQMosquitto)通信

Maven 用户需要将以下依赖项添加到其 pom.xml 中:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-mqtt</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

230.1. URI 格式

mqtt://name[?options]

其中 name 是您要分配组件的名称。