将Azure功能连接到Iot Hub云到设备反馈终结点 [英] Connect Azure Function to Iot Hub cloud to device feedback endpoint

查看:118
本文介绍了将Azure功能连接到Iot Hub云到设备反馈终结点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过某种方式将Azure功能连接到Iot Hub云到设备反馈终结点?看来此终结点与Azure事件中心不兼容.

Is it possible to somehow connect Azure Function to Iot Hub cloud to device feedback endpoint? It looks like this endpoint isn't compatible with Azure Event Hubs.

写自定义事件触发器?

Write custom event trigger?

我使用C#Azure函数.

I use C# Azure Function.

推荐答案

当前,云到设备反馈终结点不支持直接订阅Azure功能.

Currently the Cloud to device feedback endpoint doesn't support subscribed for the Azure function directly.

正常情况是,我们应在立即发送C2D消息后处理反馈.这是通过 IoT中心服务SDK 通过ServiceClient.GetFeedbackReceiver()实现的.有关处理C2D消息反馈的更多详细信息,您可以参考接收投放反馈.

A normal scenario is that we should handle the feedback after sending the C2D messages immediately. That is implement by the IoT Hub Service SDK via ServiceClient.GetFeedbackReceiver(). More detail about handling feedback of C2D messages you can refer Receive delivery feedback.

如果您还想处理来自Azure函数的这些反馈,则可以使用发送C2D消息的HTTP请求从 ServiceClient 转发.然后,您可以使用Http触发器创建一个Azure函数来接收它.

And if you also want to handle these feedback from Azure function, you can forward it from your ServiceClient using the HTTP Request where you send the C2D messages. Then you can create a Azure function with the Http trigger to receive it.

如果您对Azure IoT中心有任何想法和反馈,可以从提交这里.

And if you have any idea and feedback about Azure IoT Hub you can submit it from here.

这篇关于将Azure功能连接到Iot Hub云到设备反馈终结点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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