-
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
Do not report attribute in _getAttributesToReportWithReportedValues i… #32883
Conversation
…f an expected value is present - The expiry timer for the expected value will take care of the reporting and we shouldn't report an attribute in the expected value interval if there is an existing expected value
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.
Thank you for doing this work @nivi-apple ! This moves the expected value API to the original intention of optimizing for the success case, and keeping the value at the last set expected value, unless something unexpected happens, in which case the value will revert to the correct "last known value" either immediately after a write error, or at the expected value expiration time.
I've in the past put a TODO in the MTRDevice.h write API to better document this. Please either add some documentation as part of this PR, or file an issue for it. I thought I had done this but can't seem to find an issue for it.
PR #32883: Size comparison from f46cdf3 to 91537d1 Decreases (1 build for efr32)
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
One of the expected value test is failing. Investigating that. @jtung-apple will address your comment above as well. |
PR #32883: Size comparison from f46cdf3 to 8d025d0 Increases above 0.2%:
Increases (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
Decreases (2 builds for linux)
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
Discussed offline with Jeff. Filed an issue and assigned to @jtung-apple #32902. I think he would be the best person to tackle this. |
…f an expected value is present
Fixes: #32882