-
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
[controller] reset Device state for usage in accessories #9386
Conversation
@msandstedt The change follows our discussion in #9103. Though it's kind of hack it unblocks us. @mspang @andy31415 PTAL. |
I had offline discussion with Tennessee and here is his comments:
Personally I believe the delegate class #9103 is not an elegant solution. This approach requires rewriting a large amount of code. As an unblocker, this hack looks quite acceptable compared to #9103. If we are using a temporary solution anyway, I'll prefer a smaller change. |
|
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.
While a 1 line change, what test failed? What is this fixing? What new test is added to confirm that this doesn't regress?
Unit test added. It's testing calling |
3a68687
to
4067fb5
Compare
4067fb5
to
5d635e6
Compare
Size increase report for "esp32-example-build" from 92309bc
Full report output
|
…p#9386) * [controller] reset Device state for usage in accessories * add unit test
Problem
The controller::Device class is currently tightly assuming the device state and forcing a commssion flow starting from PASE.
Change overview
Reset the state in
OperationalCertProvisioned
so that we can call this function to start from CASE.Testing
How was this tested?