Device connectivity(online/offline)status with the Auzure iot hub

此生再无相见时 提交于 2019-12-11 16:13:44

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/54438490/device-connectivityonline-offlinestatus-with-the-auzure-iot-hub

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!