From b63d8971c6a133a663880fc59707c200d5ef0585 Mon Sep 17 00:00:00 2001 From: Carol Yang Date: Wed, 13 Apr 2022 12:02:25 -0700 Subject: [PATCH] [OTA] Make ImageURI configurable for the OTA Provider app (#17222) --- .github/.wordlist.txt | 2 + examples/ota-provider-app/linux/README.md | 1 + examples/ota-provider-app/linux/main.cpp | 35 ++++++++------- .../OTAProviderExample.cpp | 43 ++++++++++++++----- .../ota-provider-common/OTAProviderExample.h | 3 ++ src/protocols/bdx/BdxUri.cpp | 7 ++- src/protocols/bdx/BdxUri.h | 9 ++++ 7 files changed, 71 insertions(+), 29 deletions(-) diff --git a/.github/.wordlist.txt b/.github/.wordlist.txt index 3eb6cef2f112c1..3938e78ea731fa 100644 --- a/.github/.wordlist.txt +++ b/.github/.wordlist.txt @@ -618,6 +618,8 @@ IlluminanceMeasurement IM imager imagetool +ImageURI +imageUri img Impl ImplClass diff --git a/examples/ota-provider-app/linux/README.md b/examples/ota-provider-app/linux/README.md index c993f77c1081e0..af21d26be9e773 100644 --- a/examples/ota-provider-app/linux/README.md +++ b/examples/ota-provider-app/linux/README.md @@ -18,6 +18,7 @@ scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug c | -a, --applyUpdateAction \ | Value for the Action field in the first ApplyUpdateResponse.
For all subsequent responses, the value of proceed will be used. | | -c, --userConsentNeeded | If supplied, value of the UserConsentNeeded field in the QueryImageResponse is set to true. This is only applicable if value of the RequestorCanConsent field in QueryImage Command is true.
Otherwise, value of the UserConsentNeeded field is false. | | -f, --filepath \ | Path to a file containing an OTA image | +| -i, --imageUri \ | Value for the ImageURI field in the QueryImageResponse. If none is supplied, a valid URI is generated. | | -o, --otaImageList \ | Path to a file containing a list of OTA images | | -p, --delayedApplyActionTimeSec \