Azure-Samples / iot-middleware-freertos-samples

This repo has samples for dev kits using the Azure IoT middleware for FreeRTOS
MIT License
77 stars 46 forks source link

Fix for ESP32 ADU sample to use installedCriteria for version comparison #211

Closed ewertons closed 2 years ago

ewertons commented 2 years ago

Purpose

Fix for github issue https://github.com/Azure-Samples/iot-middleware-freertos-samples/issues/210

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Just run the ESP32 ADU sample as usual.

What to Check

Verify the update happens as expected from version 1.0 to 1.1, and the update request gets rejected after the device boots up with the new image version (1.1).

Other Information

ewertons commented 2 years ago

After a meeting with ADU engineers, we got this summary: we will modify our sample code to handle the update manifest as such: