与Auzure IoT中心的设备连接性(联机/脱机)状态 [英] Device connectivity(online/offline)status with the Auzure iot hub

查看:137
本文介绍了与Auzure IoT中心的设备连接性(联机/脱机)状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将移动设备连接到IOT集线器。我想在另一台设备上安装的IOT集线器服务应用程序上显示该设备的连接(联机/脱机)状态。如何实现呢?连接状态发生变化时,是否会触发任何自动触发/事件?服务SDK中也有任何API可以检查设备的连接状态。

I connected my mobile device to the IOT hub. I would like to display the connectivity (online/offline) status of the device on IOT hub service app installed on another device. How to achieve this? Is there any automatic trigger/event that fires when there is change in connectivity status? Also is there any API in service SDK to check the connectivity status of the device.

推荐答案

是的,我们在以下位置发布设备连接状态事件网格,可用于触发: https://docs.microsoft.com/zh-cn/azure/iot-hub/iot-hub-how-to-order-connection-state-events

Yes, we publish device connection state on Event Grid, which can be used for trigger: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-how-to-order-connection-state-events

这篇关于与Auzure IoT中心的设备连接性(联机/脱机)状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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