MQTT Mosquito桥接配置



我正试图将运行在树莓pi中的mosquito broker连接到云Mosquito mqtt broker(test.mosquito.org/1883(。

当我从连接到云代理的客户端发布时,我在连接到本地代理的客户端中没有收到消息。但是,我在连接到云mosquitto代理的客户端上收到了来自连接到本地MQTT代理的客户端的消息。我没有任何防火墙来阻止消息。

我的mosquitto.conf文件是这样的

connection bridge-01
address test.mosquitto.org:1883
topic # out 0
topic # in 0

我也有

listener 1883
allow_anonymous true

在我的配置中

如何解决这个问题?。我哪里错了??

全局通配符订阅(订阅#(在test.mosquitto.org代理上被禁用,因为它生成的负载太多。

例如

$ mosquitto_sub -h test.mosquitto.org -v -t '#' 
All subscription requests were denied.

您可以将topic # in 0行更改为仅引入您实际使用的主题。

还请记住,这个代理只是真正用于测试,您不应该将其作为任何长期的免费云中继。

最新更新