0

我通过网桥将 mqtt 消息从 machine1 发布到 machine2。在 machine1 上我正在运行 mosquitto 代理,在 machine2 上我正在使用 rabbitmq mqtt 插件。

我试图在网络断开的情况下保留消息。当它再次连接时,它应该重试发送消息。我将 cleansession 设置为 false 并将网桥上的 QoS 设置为 1 但是我没有收到消息

这是网桥配置

connection main
address <ipAddress>:1883
topic # both 1 topic1/ topic2/
cleansession false
try_private false
remote_username <username>
remote_password <password> 

有任何想法吗 ?

4

1 回答 1

0

应该使用 -q 选项使用 QoS 1 发布消息

mosquitto_pub -q 1 -t ubuntuTopics/test/ -m "TESTING"
于 2015-08-15T16:32:14.920 回答