These demos demonstrate usage of the AWS IoT Over-the-air Update library.
A demo of OTA library to perform a firmware update using coreMQTT for data operations.
This example demonstrates the use of OTA library to perform a device firmware update. The Linux application acts as an OTA client and AWS Services(AWS IoT, S3, Jobs etc.) are used to send an update to the client. The demo uses the coreMQTT library to establish a connection to AWS IoT , then subscribes to OTA specific MQTT topics to receive a job. After a user schedules a job, the client begins the download using coreMQTT to request, ingest, and store the data blocks, with the help of tinyCBOR to encode the data stream. Once the image is downloaded, the file key signature, version, and image is verified to reset and display a successful update. Workflow for the demo is as follows:
A demo of OTA library to perform a firmware update using coreHTTP for data operations.
This example is a modification of the above demo to securely send a firmware image to the device by using coreHTTP for data plane operations. While it still uses MQTT for control operations like pending job notifications and updating job status, this demo uses HTTP instead of MQTT to download the file.