从azure iot hub中检索数据时出现问题 [英] Issue in retreiving the data from azure iot hub

查看:120
本文介绍了从azure iot hub中检索数据时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想告诉你我的用例。我使用python sdk从DHT传感器使用覆盆子pi发送温度和湿度到azure iot hub这个部分正在工作。然后使用流分析我正在重定向我的azure iot hub 数据到
sql数据库这部分工作正常。然后我用asp.net创建了一个web api来调用数据库中的最后一条记录,这也是有效的。



但是ii kn for事实上,这不是最好的方法,任何人都可以建议我最好的工作方法

解决方案


你正确地做了。你在这面面遇到的问题是什么?如果您的主要目标是在Web应用程序上显示数据,那么您可以按照文档

使用Azure App Service的Web Apps功能可视化Azure IoT中心的实时传感器数据


First of all i want to tell you about my usecase. I am sending Temperature and humidity from DHT Sensor using raspberry pi to azure iot hub using python sdk this part is working. Then using stream analytics i am redirecting my azure iot hub  data to sql database this part is working. Then i have created a web api using asp.net to call the last record from the databsed this is also working.

But i i kn for the fact that this is not the best approach can anyone suggest me the best approach for my work

解决方案

Hi,

You are doing it correctly. What is the issue you are facing here? If your main goal is to display the data on web app then you can follow the documentation Visualize real-time sensor data from your Azure IoT hub by using the Web Apps feature of Azure App Service


这篇关于从azure iot hub中检索数据时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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