From e0cec537240cba024452218b9effb5a30a1e508c Mon Sep 17 00:00:00 2001 From: Carol Yang Date: Fri, 8 Apr 2022 13:43:30 -0700 Subject: [PATCH] [OTA] Make ImageURI configurable for the OTA Provider app --- .github/.wordlist.txt | 2 ++ examples/ota-provider-app/linux/README.md | 1 + examples/ota-provider-app/linux/main.cpp | 35 +++++++++---------- .../OTAProviderExample.cpp | 29 +++++++++++---- .../ota-provider-common/OTAProviderExample.h | 3 ++ src/protocols/bdx/BdxUri.cpp | 1 + src/protocols/bdx/BdxUri.h | 7 ++++ 7 files changed, 53 insertions(+), 25 deletions(-) diff --git a/.github/.wordlist.txt b/.github/.wordlist.txt index 2ee3662f89df21..30f05d8ebf2f11 100644 --- a/.github/.wordlist.txt +++ b/.github/.wordlist.txt @@ -619,6 +619,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 5eff4f0532f938..f775a89f4725c5 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 \