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
posta un anno fa341 visualizzazioni
1 Risposta
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
ESPERTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande