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
demandé il y a un an341 vues
1 réponse
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
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions