来自Azure IOT中心的SMS消息传递 [英] SMS Messaging from Azure IOT Hub
问题描述
我当前正在使用Adruino Uno构建一个项目,以收集温度和湿度等天气数据,然后将这些数据传递到Azure IOT中心,然后将消息处理并再次存储到Azure中的SQL数据库中.最后,数据将显示在网站上,用户可以注册并查看我收集的天气数据.
I am currently building a project using an Adruino Uno to collect weather data such as temperature and humidity, this data is then passed onto the Azure IOT hub, the messages are then processed and stored to an SQL database again in Azure. Finally the data is then displayed on a website which users can sign up to and view the weather data I have collected.
我正在尝试在系统中实施SMS通知,以便如果温度达到某个特定阈值(例如0摄氏度),系统上的用户将收到SMS消息,通知他们低温.
I am trying to implement SMS notifications into the system so that if the temperature is to hit a certain threshold say 0 degrees Celsius, users on the system will receive SMS messages notifying them of the cold temperature.
我的问题是,SMS消息的触发和发送是否可以包含在Stream Analytics或Event Hub中.还是我需要创建一个事件中心来触发网站上发送短信的操作?
My question is can the triggering and sending of the SMS messages be contained within Stream Analytics or the Event Hub. Or would I need to create an Event Hub that can trigger an action on the website which will send the SMS messages?
我已经看到此链接 https://github.com/Azure-Samples/event-hubs-dotnet-user-notifications ,但我不认为答案就是我所问的具体问题.
I have seen this link https://github.com/Azure-Samples/event-hubs-dotnet-user-notifications but I don't think at answers the specific question I have asked.
感谢您的帮助或建议
推荐答案
根据我的经验,我建议您可以使用事件触发器并将SQL表绑定为输入& Twilio作为通过Azure Function应用程序的输出来实现需求.作为参考,请参阅下面的这些文件.
Per my experience, I suggest that you can use Events trigger and bind SQL table as input & Twilio as output via Azure Function Apps to implement the needs. As references, please see these documents below.
- Azure Functions triggers and bindings concepts
- Event Hub Trigger
- Send SMS messages from Azure Functions using the Twilio output binding
这篇关于来自Azure IOT中心的SMS消息传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!