Send IoT Hub Cloud-to-Device message from Stream Analytics Output (Using Event Hub endpoint)

谁说胖子不能爱 提交于 2019-12-24 19:19:03

问题


We use Stream Analytics successfully for ingesting event messages sent from IoT Hub devices. Stream Analytics supports IoT Hub as Input stream out of the box. But now we have a requirement to send the Stream Analytics Output result to an IoT Hub Device. We are able to setup an Event Hub connection to IoT Hub as the Output sink for Stream Analytics, but we get an error event raised: Message: Access to the Event Hub has been denied. The token may have an invalid signature.

Which raises the question; is it at all possible to send IoT Hub Cloud-to-Device messages from an Stream Analytics Output sink?


回答1:


  • Sending an IoT Hub C2D Message (non-telemetry path) from the Stream Analytics job can be done indirectly via the Service Bus entity (Queue/Topic), see the following screen snippet:

ASA-to-Device Messaging



来源:https://stackoverflow.com/questions/44249691/send-iot-hub-cloud-to-device-message-from-stream-analytics-output-using-event-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!