我可以通过下载Thing
通过Python SDK与单个AWS connection kit
通信。遵循以下步骤;
从AWS帐户>服务> AWS IOT>板载>使用入门>单击get started
,选择Linux VM和Python SDK,单击NEXT;
此后的第一步是Choose a thing
,在这里我只能选择一件事。这意味着我将获得的连接工具包只能与那件事进行对话。有什么办法可以通过提供ARN端点来获取允许我的python脚本发布和订阅多个事物的单个证书?
myAWSIoTMQTTClient.publish("arn:aws:iot:us-east-2:xxxxxxxxxxxx:thing/Thing1", "topic_1", "Hello thing 1")
myAWSIoTMQTTClient.publish("arn:aws:iot:us-east-2:xxxxxxxxxxxx:thing/Thing2", "topic_1", "Hello thing 2")
myAWSIoTMQTTClient.publish("arn:aws:iot:us-east-2:xxxxxxxxxxxx:thing/Thing3", "topic_1", "Hello thing 3")