0

I have an Azure IoT Device in an IoT Central application. We don't want it to execute offline commands. Is there any way to switch off this offline commands execution capability.

Matthijs van der Veer
  • 3,865
  • 2
  • 12
  • 22

1 Answers1

0

Based on my test (sync command), the behavior of executing "offline command" is working well. In the case, when the device is disconnected from Azure IoT Central App, the error Not Found is returned back after 30 seconds, see my example:

  {
    "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"
    }
  }

and the following screen snippet shows a command history in the IoT Central App:

enter image description here

Note, that in the present version there is no feature such as re-executing (retrying) a sync or async command on the re-connected device. If the device is not connected, the command is completed with a failed status = NotFound, in other words, the command is invoking in the sync manner, see more details here.

Roman Kiss
  • 7,925
  • 1
  • 8
  • 21