我试图在aws中订阅mqtt broker。
使用mosquitto client(Ver 1.4.11)订阅我。
命令就像这样
mosquitto_sub.exe --cafile "path_to_ca" --cert "path_to_cert" --key "path_to_key" -h id1234.iot.ap-northeast-1.amazonaws.com -p 8883 -q 1 -d -t '$aws/things/DeviceTokyo/shadow/get' -i DeviceTokyoCMD
但我得到以下回复
Client DeviceTokyoCMD sending CONNECT
Error: The connection was lost.
答案 0 :(得分:0)
我想到了这个问题。策略资源ARN出了问题。所以我做了更改,允许从*