无法让Mosquitto<->AWS IoT桥接保持连接

3
我正在AWS Ubuntu 20.04.2 LTS服务器上运行Mosquitto Broker。我有两个MQTT桥接器,一个是从我的笔记本连接到服务器上的代理,另一个是连接到AWS IoT的服务器。
我的服务器上的代理配置如下:
listener 1883
protocol mqtt

listener 9001
protocol websockets

allow_anonymous false
password_file /etc/mosquitto/conf.d/passwd.txt

connection awsiot
address xxxxxxxxxx-ats.iot.eu-north-1.amazonaws.com:8883

topic iotethernet/switch/count out 1
topic iotethernet/ledblock/states in 1

bridge_protocol_version mqttv311
bridge_insecure false
bridge_outgoing_retain false

cleansession true
clientid bridgeawsiot
start_type automatic
notifications true
log_type all

bridge_cafile /etc/mosquitto/certs/rootCA.pem
bridge_certfile /etc/mosquitto/certs/cert.crt
bridge_keyfile /etc/mosquitto/certs/private.key

问题在于我运行服务器时,桥接客户端不停地连接并立即断开,且没有错误消息。
图片中展示了mosquitto代理在桥接客户端断开连接后的情况。
我通过使用AWS IoT -test功能进行测试,确保桥接不起作用。
从笔记本电脑到服务器的桥接工作正常。
1个回答

0

我通过将通知设置为false使其正常工作


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接