我如何知道我在Azure IoT中心中的设备是否可以访问? [英] How do I know if my Device in Azure IoT Hub is reachable?

查看:112
本文介绍了我如何知道我在Azure IoT中心中的设备是否可以访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有2个设备的Azure IoT中心.我从RaspberryPi发送消息到另一台设备.

I have a Azure IoT Hub with 2 Devices. I send a Message from a RaspberryPi to another Device.

我怎么知道该消息是从另一台设备收到的?

How do I know that the message was received from the other Device?

推荐答案

您可以参考开源的设备资源管理器工具.

You can refer to the Device Explorer tool, which is open sourced.

如果要监视IoT中心是否可访问IoT设备,则可以转到消息发送到设备"选项卡,在设备ID"选项卡中选择IoT设备,并确保选中""监视器".反馈端点" .每当从IoT中心向设备发送消息时,都会显示callback(feedback)消息.

If you want to monitor if an IoT device is reachable by the IoT Hub, you can got to "Message To Device" tab, select the IoT device in the Device ID tab, and make sure you checked "Monitor Feedback Endpoint". Whenever a message is sent from the IoT Hub to the device, and callback(feedback) message will be showing the status of the message.

如果要以编程方式进行操作,请参阅DeviceExplorer源代码 https://github.com/Azure/azure-iot-sdks/tree/master/tools/DeviceExplorer/DeviceExplorer ,监视代码

If you want to do it programatically, refer to the DeviceExplorer source code https://github.com/Azure/azure-iot-sdks/tree/master/tools/DeviceExplorer/DeviceExplorer, the monitor code MainForm.cs, from line 726.

这篇关于我如何知道我在Azure IoT中心中的设备是否可以访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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