IoT Core OTA Job FAILED的重试技术

0

【以下的问题经过翻译处理】 大家好,物联网的朋友们,

我正在研究, 让OTA升级失败的设备重启OTA任务的最佳实践方法。

情景:

“假设我们针对1000个设备运行了OTA升级,其中42个因某种原因失败了。 我们纠正了“原因”,现在只需要针对这42个设备重新运行作业。

所以,我查找了API,找到了:

将lambda附加到筛选已完成事件的IoT规则上,如:

下一个逻辑步骤是调用ListJobExecutionsForJob,并传入作业ID,只筛选失败的作业。

但我看不到如何匹配执行到物体上,因为您需要物体名称才能调用DescribeJobExecution。

您需要使用Fleet Indexing? 还是有更好的编程方式可以获取OTA作业中失败的设备列表,以便我们可以警报/报告/构建重试工具呢?

谢谢!

profile picture
ESPECIALISTA
feita há 6 meses17 visualizações
1 Resposta
0

【以下的回答经过翻译处理】 ListJobExecutionsForJob返回ThingArn,格式为arn:aws:iot:<region><account-id>:thing/<thing-name>。您可以从中提取ThingName。

profile picture
ESPECIALISTA
respondido há 6 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas