-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Update AppDelegate to report error param and callback for when session establishment starts #28138
Conversation
fec5dfc
to
5fba77c
Compare
class AppDelegate | ||
{ | ||
public: | ||
virtual ~AppDelegate() {} | ||
/** | ||
* This is called on start of session establishment process |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…n establishment starts (project-chip#28138)
Fixes #28136
Problem
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).
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.