python - 如何允许 AWS IOT python SDK 与多个“事物”通信
问题描述
我可以Thing
通过下载AWS connection kit
. 遵循以下步骤;
从 AWS account > Services > AWS IOT > onboard > Get started > 点击get started
,选择 Linux VM 和 Python SDK,点击 NEXT;
之后的第一步是Choose a thing
,我只能选择单个事物。这意味着我将获得的连接套件只能与那个单一的东西交谈。有什么方法可以让我的 python 脚本通过提供 ARN 端点来发布和订阅多个东西的单一证书?
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")
解决方案
推荐阅读
- google-app-engine - 是否可以在 App Engine Flexible 实例上使用带有后端的内部负载平衡器?
- jenkins - Jenkins:将用户定义的变量传递给 Email-Ext 插件
- angular - 在同一域上托管 2 个应用程序(Angular 和 Neuroglancer)
- php - 从请求中删除特定的嵌套数组键
- php - Laravel Datatables 在添加额外列时出现 net::ERR_EMPTY_RESPONSE 错误
- android - 在 Androidx 中使用 recyclerView 显示来自 Firebase 实时数据库的图像
- java - 协议有问题。MinecraftPing 类
- pip - hpbandster 和 ConfigSpace 安装失败
- mysql - 当您不设置时,docker 容器 mysql-server 中的默认密码是什么?
- python - Chromedriver 文本文件忙