Azure IoT设备脱机命令问题

时间:2020-08-07 10:40:09

标签: azure-iot-central

我在IoT Central应用程序中有一个Azure IoT设备。 我们不希望它执行离线命令。有什么方法可以关闭此离线命令执行功能。

1 个答案:

答案 0 :(得分:0)

根据我的测试(同步命令),执行“离线命令”的行为运行良好。在这种情况下,当设备与Azure IoT中心应用程序断开连接时,错误未找到会在30秒后返回,请参见我的示例:

  {
    "error": {
      "code": "NotFound",
      "message": "Could not connect to device in order to send command. You can contact support at https://aka.ms/iotcentral-support. Please include the following information. Request ID: cic9xs38, Time: Sun, 09 Aug 2020 05:08:00 GMT.",
      "requestId": "cic9xs38",
      "time": "Sun, 09 Aug 2020 05:08:00 GMT"
    }
  }

,以下屏幕片段显示了IoT Central应用程序中的命令历史记录:

enter image description here

请注意,在当前版本中,没有诸如在重新连接的设备上重新执行(重试)sync或async命令之类的功能。如果未连接设备,则该命令以失败的状态= NotFound完成,换句话说,该命令正在以同步方式调用,请参阅更多详细信息here