【发布时间】:2022-12-30 02:29:08
【问题描述】:
我正在使用这个命令
C:\Users\*******\aws-iot-device-sdk-python-v2\samples>py pubsub.py --topic topic_1 --ca_file "C:\Users\HP*************\AmazonRootCA1.pem" --cert "C:\Users\***********certificate.pem.crt" --key "C:\Users*************private.pem.key" --endpoint ********p-south-1.amazonaws.com
Connecting to ********ap-south-1.amazonaws.com with client ID 'test-2b05cc3d-70e6-4a15-8798-6057fbffaa13'...
Connected!
Subscribing to topic 'topic_1'...
Connection interrupted. error: AWS_ERROR_MQTT_UNEXPECTED_HANGUP: The connection was closed unexpectedly.
Connection resumed. return_code: 0 session_present: True
Connection interrupted. error: AWS_ERROR_MQTT_UNEXPECTED_HANGUP: The connection was closed unexpectedly.
连接时它会一次又一次地尝试连接并无限执行。 为此做什么?
【问题讨论】:
标签: amazon-web-services amazon-s3 aws-iot aws-iot-core