如何将多个设备连接到AWS-IOT中的同一事物? [英] How to connect multiple devices to same Thing in AWS-IOT?

查看:240
本文介绍了如何将多个设备连接到AWS-IOT中的同一事物?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个项目中,在一个区域中安装100多个温度传感器节点,所有这些节点执行相同的功能.他们发布的数据是传感器ID和读数.我将AWS-IOT用于后端.

I am working on a project to install 100+ nodes of temperature sensors in an area, all of which perform the same function. The data they publish is the sensor id and the reading. I am using AWS-IOT for the backend.

现在,要这样做,我想我需要在aws-iot中的每个节点上创建1个东西",我认为这很难维护且不可扩展.

Now, to do so, I think I will need to create 1 'thing' per node in aws-iot which I believe is extremely hard to maintain and unscalable.

因此,我的问题是,如何将多个节点连接到AWS-IOT中的同一事物",以使集群易于管理.是否有其他替代方法可以有效地管理集群?欢迎任何输入.谢谢.

So my question here is, how to connect multiple nodes to same 'thing' in AWS-IOT so that the cluster is easy to manage. Is there any alternate way to manage the cluster efficiently? Any inputs are welcome. Thanks.

推荐答案

面临类似的难题,并且在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

这篇关于如何将多个设备连接到AWS-IOT中的同一事物?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆