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

Update AppDelegate to report error param and callback for when session establishment starts #28138

Merged
merged 3 commits into from
Jul 21, 2023

Conversation

sharadb-amazon
Copy link
Contributor

@sharadb-amazon sharadb-amazon commented Jul 20, 2023

Fixes #28136

Problem

  1. As an app developer, I need a mechanism from the Matter SDK, to know at what point the establishment of a commissioning session started (say for some cues to the user during the commissioning process).

  2. As an app developer, I need a mechanism from the Matter SDK, to know the error code for when a commissioning session stopped.

Solution

Updated the AppDelegate to allow for the above use cases. And called new callback from the CommissioningWIndowManager.

@pullapprove pullapprove bot requested a review from rcasallas-silabs July 21, 2023 17:50
@sharadb-amazon sharadb-amazon enabled auto-merge (squash) July 21, 2023 18:45
@pullapprove pullapprove bot requested a review from mkardous-silabs July 21, 2023 20:29
@sharadb-amazon sharadb-amazon merged commit 5897af2 into project-chip:master Jul 21, 2023
class AppDelegate
{
public:
virtual ~AppDelegate() {}
/**
* This is called on start of session establishment process
Copy link
Contributor

Choose a reason for hiding this comment

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

This says nothing useful. What is considered the "start of the session establishment process" @sharadb-amazon? This specifically gets called when PBKDFParamRequest is received, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Going to address it in this PR: #28186

void OnCommissioningSessionStarted() override { bluetoothLED.Set(true); }
void OnCommissioningSessionStopped() override
void OnCommissioningSessionStopped(CHIP_ERROR err) override
Copy link
Contributor

Choose a reason for hiding this comment

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

This changes public API. This should have been a new callback for status in addition to OnCommissioningSessionStopped.

Furthermore, usage of the err argument is not documented.

Copy link
Contributor Author

@sharadb-amazon sharadb-amazon Jul 24, 2023

Choose a reason for hiding this comment

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

Addressing part of this in this PR:  #28240

and tracking the rest in this issue: #28136

sharadb-amazon added a commit to sharadb-amazon/connectedhomeip that referenced this pull request Aug 1, 2023
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.

[Feature] Update AppDelegate to report error param and callback for when session establishment starts
7 participants