【发布时间】:2021-07-22 13:35:12
【问题描述】:
我在 AWS Ubuntu 20.04.2 LTS 服务器上运行 Mosquitto Broker。我有 2 个 MQTT 网桥,从我的笔记本电脑到服务器上的代理,从服务器到 AWS IoT。
我在服务器上的broker配置如下:
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
问题是我在运行服务器的时候,桥接客户端不断的连接,又马上断开连接,没有报错信息。
我已通过使用 AWS IoT -test 功能进行测试,确保网桥无法正常工作。
从笔记本电脑到服务器的网桥工作正常。
【问题讨论】:
标签: amazon-web-services mqtt iot mosquitto aws-iot