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
질문됨 일 년 전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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인