265.5.3. 订阅事件
以下片段侦听 iot 通道上的事件。如果可以通过Presens 添加选项,您还会接收频道 Join,Leave asf 事件。
from("pubnub:iot?subscribeKey=mySubscribeKey") .log("${body}") .to("mock:result");
from("pubnub:iot?subscribeKey=mySubscribeKey")
.log("${body}")
.to("mock:result");