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