【问题标题】:mosquitto and activemq mtt bridge not workingmosquitto 和 activemq mtt 桥不工作
【发布时间】:2017-03-06 01:05:56
【问题描述】:

我目前正在使用 mosquitto 和 activemq 开发应用程序。 一台设备会将消息发布到 mosquitto 并将其转发到 activemq 并发布消息。 activemq 有多个订阅者。 所以我使用蚊子桥。但下面的代码不起作用。mosquitto 和 active 也可能存在于同一台机器中。

connection testmq
bridge_insecure false
address localhost:1893
cleansession false
clientid 1
start_type automatic
username system
password manager
notifications false
try_private true
topic dev1 in 2 owntracks/ac/ owntracks/ac/
topic dev2 out 2 owntracks/mq/ owntracks/mq/

请给我任何建议

【问题讨论】:

    标签: activemq mqtt mosquitto


    【解决方案1】:

    尝试添加 bridge_protocol_version mqttv311 到你的蚊子配置。它帮助我建立了 mosquitto 和 AMQ 之间的基本连接。

    如果您添加更多关于您的问题的信息会更好。仅仅“不工作”是不够的。您在 AMQ 或 mosquitto 日志中是否有任何关于连接状态的信息性消息?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-18
      • 1970-01-01
      • 2021-11-03
      • 2015-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多