物联网中心与天蓝色的网络应用程序通信 [英] IoT Hub to azure web app communication

查看:93
本文介绍了物联网中心与天蓝色的网络应用程序通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

         我最近实施了设置azure iot hub和 在我的本地计算机上测试了以下代码,

          I have recently implemented set up an azure iot hub and  tested the following code on my local machine,

https://docs.microsoft.com/en-us/azure/iot-hub/quickstart-send-telemetry-dotnet

https://docs.microsoft.com/en-us/azure/iot-hub/quickstart-send-telemetry-dotnet

此代码在我的笔记本电脑上有两个独立的并行项目。一个人将数据包发送到IoT Hub,并从同一个IoT集线器获取它们。代码运行如链接中所述,数据包从我的笔记本电脑发送到IoT集线器,我能够
在我的机器上接收它们,所以现在我确定IoT集线器正在运行。

This code has two separate projects running in parallel on my laptop. One sends data packets to the IoT Hub and the fetches them from the same IoT hub. The code ran as explained in the link, the packets got sent from my laptop to the IoT hub and I was able to receive them back on my machine so now I am sure that the IoT hub is running.

我接下来制作了一个Azure网络应用程序。我使用Visual Studio 2017 C#ASP.NET编写代码并将其发布到应用程序。这也有效。

I next made an Azure web app. I used visual studio 2017 C# ASP.NET to write the code and publish it to the app. This works too.

现在,我想做的就是以某种方式将我的IoT Hub获取的数据发送到我的Azure网络应用程序。 

Now all I want to do is to somehow send the data that my IoT Hub is getting to the my Azure web app. 

是否有任何教程可以说明如何做到这一点? 

Is there any tutorial that shows how this can be done? 

谢谢。

推荐答案

Hello Codestar9901, 

Hello Codestar9901, 

感谢您使用Azure论坛,如果您希望管理您在IoT Hub上收到的数据,您可以:  

Thanks for using Azure forums, if you are looking to manage the data that you are receiving on your IoT Hub you can: 

1) 配置网络应用程序以从您的IoT中心读取数据 - https://github.com/MicrosoftDocs/azure-docs/blob/master/ articles / iot-hub / iot-hub-live-data-visualization-in-web-apps.md

1) Configure the web app to read data from your IoT hub -https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/iot-hub/iot-hub-live-data-visualization-in-web-apps.md

2)使用流分析来管理进入您的物联网数据物联网中心:  https://wikiazure.com/azure-iot/managing-iot-data-using-stream-analytics-blob-storage-and-power -bi /

2) Use stream analytics to manage IoT Data coming into your IoT Hub: https://wikiazure.com/azure-iot/managing-iot-data-using-stream-analytics-blob-storage-and-power-bi/

这些只是初步想法,您可以设法使用不同的选项来提供您的网络应用。  

These are just initial thoughts, you could manage to use different options to feed your web app.  





这篇关于物联网中心与天蓝色的网络应用程序通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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