【问题标题】:Microsoft Azure IoT Protocol Gateway - Disconnect Device if no message receive for a durationMicrosoft Azure IoT 协议网关 - 如果一段时间内未收到消息,则断开设备连接
【发布时间】:2022-08-24 17:29:06
【问题描述】:

我正在使用“Microsoft Azure IoT 协议网关”连接到设备。这些设备将消息发送到“Microsoft Azure IoT 协议网关”,后者又将这些消息传递给“Azure IotHub”。如果在 15 分钟内没有收到任何消息,我需要断开设备连接。 “Microsoft Azure IoT 协议网关”中是否有任何开箱即用的功能?

    标签: azure protocols iot


    【解决方案1】:

    如果你使用 python,你可以使用 get_invoke_cli 包来调用 cli

    az iot hub 设备标识更新 --resource-group {resource-group} --hub-name {Hub} --device-id {设备 id} --sta 已禁用

    禁用您的 iot 设备以连接到 iot hub

    【讨论】:

      猜你喜欢
      • 2022-07-05
      • 1970-01-01
      • 2018-07-27
      • 2023-01-05
      • 1970-01-01
      • 2018-11-05
      • 2022-11-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多