[英]Windows Azure iot hub telemetry message to push notification
I am trying to figure out the best approach for this scenario. 我正在尝试找出这种情况下的最佳方法。
I have a pir sensor attached to a raspberry pi that is sending telemetry data to a windows azure iot hub. 我有一个与树莓派相连的Pir传感器,该传感器将遥测数据发送到Windows Azure物联网中心。
I want to trigger a push notification when this telemetry data is received? 我想在收到此遥测数据时触发推送通知吗?
Any help would be appreciated. 任何帮助,将不胜感激。
I would create an Azure Web Job to consume the data coming to the IoT Hub and call a Notification Hub. 我将创建一个Azure Web作业以使用进入IoT中心的数据并调用通知中心。
This would look like this : 看起来像这样:
[Raspberry Pi] -> [IoT Hub] -> [Web Jobs] -> [Notification Hubs] [Raspberry Pi]-> [IoT中心]-> [Web作业]-> [通知中心]
Here are the pointers to the 3 key components 这是3个关键组成部分的指针
https://azure.microsoft.com/en-us/documentation/services/iot-hub/ https://azure.microsoft.com/zh-CN/documentation/services/iot-hub/
https://azure.microsoft.com/en-us/documentation/articles/websites-webjobs-resources/ https://azure.microsoft.com/zh-CN/documentation/articles/websites-webjobs-resources/
https://azure.microsoft.com/en-us/documentation/services/notification-hubs/ https://azure.microsoft.com/zh-CN/documentation/services/notification-hubs/
You could use an Azure Function as a lighter alternative to a Web Jobs. 您可以将Azure函数用作Web作业的替代方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.