简体   繁体   English

Azure IOT Edge设备可以连接到多个Azure IOT Hub吗?

[英]Can Azure IOT Edge device connect to the multiple Azure IOT Hubs?

Can we connect Azure IoT Edge Gateway part of multiple Azure IoT Hubs?我们可以连接多个 Azure 物联网中心的 Azure 物联网边缘网关部分吗? or Any recommendations to achieve the following multiple hierarchical hubs in the Azure IoT solution?或在 Azure IoT 解决方案中实现以下多个分层集线器的任何建议?

For example device1, device2 connected to Edge Gateway.例如,连接到 Edge Gateway 的设备 1、设备 2。

Edge Gateway, device1, device2 -> Root Azure IoT Hub owner Edge Gateway、device1、device2 -> Root Azure IoT 中心所有者

Edge Gateway, Device 1 - IoT Hub 1 Edge 网关,设备 1 - IoT 中心 1

Edge Gateway, Device 2 - IoT Hub 2 Edge 网关,设备 2 - IoT 中心 2

so that relevant devices message can be forwarded to Hub1, Hub2.以便相关设备消息转发到Hub1、Hub2。

No, as of today one Edge device can only connect to one IoT Hub. 否,到目前为止,一台Edge设备只能连接到一个IoT中心。 To achieve your use case, I would probably use routing in the IoT Hub to forward messages to subsequent Event Hubs, for example with routing based on the device id or some other property that you choose. 为了实现您的用例,我可能会在IoT集线器中使用路由将消息转发到后续的事件集线器,例如基于设备ID或您选择的其他属性进行路由。

with ASA Azure Stream Analytics.与 ASA Azure Stream 分析。 in the input of the ASA configure the iothub that receives the data from the iotedge, in the outputs configure the iothubs that need to replicate the data, in the output use for iothub the "Event Hub" and put the "Event Hub compatible endpoint" of iothub.在 ASA 的输入中配置从 iotedge 接收数据的 iothub,在输出中配置需要复制数据的 iothub,在 output 中为 iothub 使用“Event Hub”并放置“Event Hub compatible endpoint” iothub 的。

iotedge -> iothub -> ASA -> multiples iothubs iotedge -> iothub -> ASA -> 多个 iothubs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM