azure函数:将http请求的查询参数发送到iot集线器,以便可以将其广播到连接的设备 [英] azure functions : send the query parameter of http request to iot hub so that it can be broadcasted to connected devices

查看:147
本文介绍了azure函数:将http请求的查询参数发送到iot集线器,以便可以将其广播到连接的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Azure函数的新手, 我尝试了一下,然后卡在有一个函数(http触发)的地方,该函数接受两个查询参数,我希望这些参数到达IOT集线器,以便随后将这些参数作为消息发送给 所有连接的设备.我怎么知道呢? 

解决方案

有很多在IOT Hub旁边使用Azure Functions的示例

https://azure.microsoft.com/zh-cn/blog/how-to-use-azure-functions-with-iot-hub-message-routing/

https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs

https://www.10thmagnitude.com/step-step-guide在azures-iot-hub中创建功能/

https://github.com/olivierbloch/iot-hub-echo-preview

我建议您查看上面的一些链接,看看它们是否有帮助.您也可以随时在此处共享您的代码以及看到的所有相关错误消息.


Hi ,

I am new to Azure functions,  I was trying them out and I got stuck where I have a function (http triggered) it takes in the two query parameters, I want these parameters to reach to IOT hub, so that then I can send these parameters as a message to all the connected devices. How can I got about it? 

解决方案

There are quite a few examples of using Azure Functions along side of IOT Hub

https://azure.microsoft.com/en-us/blog/how-to-use-azure-functions-with-iot-hub-message-routing/

https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs

https://www.10thmagnitude.com/step-step-guide-creating-functions-within-azures-iot-hub/

https://github.com/olivierbloch/iot-hub-echo-preview

I would suggest you review some of the above links to see if they help. You can also feel free to share you code here and any associated error messages you are seeing. 


这篇关于azure函数:将http请求的查询参数发送到iot集线器,以便可以将其广播到连接的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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