Основываясь на моем тесте (команда syn c), поведение выполнения «автономной команды» работает хорошо. В случае, когда устройство отключено от приложения Azure IoT Central, ошибка Not Found возвращается через 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:
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 здесь .