我正试图将我在raspberry pi中运行的蚊虫经纪人架设到云mqtt (test.mosquitto.org:1883)上。
当我从连接到云代理的客户端发布信息时,我不会在我的客户机中获得连接到本地代理的消息。但是,我正在从连接到本地MQTT代理的客户端获取连接到云蚊子代理的客户端消息。我没有防火墙来阻止消息。
我的mosquitto.conf文件是这样的
connection bridge-01
address test.mosquitto.org:1883
topic # out 0
topic # in 0我也有
listener 1883
allow_anonymous true在我的配置中
如何解决这个问题?我哪里出问题了??
发布于 2022-01-11 13:47:48
全局通配符订阅(订阅#)在test.mosquitto.org代理上被禁用,因为它会产生太多的负载。
例如:
$ mosquitto_sub -h test.mosquitto.org -v -t '#'
All subscription requests were denied.您可以将topic # in 0行更改为只插入实际使用的主题。
请记住,这个代理只用于测试,您不应该使用它作为任何长期的免费云中继。
https://stackoverflow.com/questions/70666558
复制相似问题