Using a Device Shadow to notify device(s) of new OTA update

0

Hello,

I am looking to use device shadows for my device (ESP32) and am looking for some guidance on how I could have a creation of an AWS job update a device's desired shadow state to a newer version of firmware. I would like to have my device to then check this desired state and if the device's current firmware version is a lower version then it would start an OTA update on my device. My initial thoughts is to use the reserved MQTT topics from AWS Jobs API to notify via MQTT (/jobs/notify or /jobs/notify-next?), look to trigger a device shadow desired state change to the version number. The device would then check the desired section of its shadow and if the version is lower it would then proceed with an OTA update. For more context, I will have multiple devices that will require the same firmware.

kevinah
已提问 1 年前341 查看次数
1 回答
1

Hi kevinah,

to create OTA update you can use AWS IoT jobs. There is no need to use the shadow device. You can place for example the desired firmware version in the job template for your OTA job.

You can find examples for (OTA) jobs for FreeRTOS or the AWS IoT Device Client.

Cheers,
Philipp

AWS
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则