断开连接(或关闭)设备连接如果持续时间没有收到消息

发布于 2025-02-05 06:20:09 字数 99 浏览 2 评论 0原文

在我的应用程序中,我们有与Azure Iothub连接的设备。 IOTHUB中是否有办法执行设备断开连接,如果从设备收到15分钟的时间? Azure iothub中是否有任何此类功能?

In my application, we have devices which connects with Azure IoTHub. Is there a way in IoTHub which enforce device disconnection if no message received from a device for a duration of 15 minutes ? Is there any such functionality present in Azure IotHub out of the box ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

缱绻入梦 2025-02-12 06:20:09

不幸的是,Azure Iothub中没有此类功能。

您可以通过编程方式管理它。当设备侧没有操作时,您可以将设备保持在睡眠模式。

您可以发布功能请求

Unfortunately there is no such feature available in Azure IoTHub.

You can manage it programmatically. You can keep the device in sleep mode when there is no action on device side.

You can post a feature request here.

熊抱啵儿 2025-02-12 06:20:09

如果您使用的是Python,则可以使用get_invoke_cli软件包来调用CLI

AZ IoT Hub设备 - 设备识别更新-Resource-group {Resource-group} -Hub-name {hub} -device-id {设备ID} - sta disabled

以禁用您的IotDevice以连接到Iothub

if you're using python, you can use get_invoke_cli package to call cli

az iot hub device-identity update --resource-group {resource-group} --hub-name {Hub} --device-id {device id} --sta disabled

to disable your iotdevice to connect to iothub

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文