且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将多个设备连接到AWS-IOT中的同一事物?

更新时间:2023-01-11 08:22:15

面临类似的难题,并且在AWS IoT管理控制台上创建太多东西"是不切实际的;我进行了一些研究,发现AWS强烈建议不要将多个设备连接到相同的事物".

Faced with a similar dilemma and the impracticality of creating too many 'things' on the AWS IoT administration console; I've done some research and found that connecting multiple devices to the same 'thing' is strongly discouraged by AWS.

尽管您可以在以下帮助下使用客户端ID,但是无论如何都不可能使使用相同MQTT ID的两个不同节点连接到同一事物(具有相同ID的最后一个连接节点将踢出先前连接的节点).一些代码.

Anyway its not possible to keep two different nodes using the same MQTT id connected to the same thing (the last connected node with the same id kicks out the previously connected node), although you can use your client ID with the help of some code.

我了解到,实际上,您不需要物"即可连接到AWS IoT,只需证书即可;并且您可以通过代码在AWS IoT服务上创建元素.

I learned that actually you don't need a 'thing' to connect to AWS IoT, just a certificate will do; and that you can create elements on AWS IoT service by code.

因此,总而言之;我本人也面临类似的问题,因此我在下面浏览了此信息,发现它对我的情况很有用,并在此处分享. https://forums.aws.amazon.com/thread.jspa?threadID= 234102

So, in summary; facing a similar question myself, I ran across this information below, found it useful in my case and sharing it here. https://forums.aws.amazon.com/thread.jspa?threadID=234102