Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA Requestor and Provider fixes #10037

Merged
merged 6 commits into from
Sep 30, 2021

Conversation

selissia
Copy link
Contributor

@selissia selissia commented Sep 28, 2021

Problem

[ota-provider-app] Add configuration for sending "Busy" status and DelayedActionTime #9478
[ota-requestor-app] Close the BDX ExchangeContext when transfer is over #9525

Change overview

Fix for 9478: Add configuration for sending "Busy" status and DelayedActionTime. Add the following command line options to the Provider Linux executable:
-q/--QueryImageBehavior <UpdateAvailable | Busy | UpdateNotAvailable>
Status value in the Query Image Response
-d/--DelayedActionTimeSec
Value in seconds for the DelayedActionTime in the Query Image Response

Fix for 9525: Close the BDX ExchangeContext when transfer is over. Call mExchangeCtx->Close() in cases of transfer timeout, internal error and status received.

Testing

Tested with the Provider/Requestor apps on Linux. Verified the scenarios for successful file transfer, transfer timeout, various command line parameter combinations.

…ActionTime

Add the following command line options to the Provider Linux executable:
-q/--QueryImageBehavior <UpdateAvailable | Busy | UpdateNotAvailable>
          Status value in the Query Image Response
-d/--DelayedActionTimeSec <time>
        Value in seconds for the DelayedActionTime in the Query Image Response
Copy link
Contributor

@holbrookt holbrookt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future I'd recommend splitting a PR like this into 2 separate PRs - one for ota-requestor changes and one for ota-provider changes.

For now this is probably fine, especially since the ota-requestor changes are pretty small.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants