You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for notifying the delegate when device configuration changes (project-chip#33146)
* Add support for notifying the delegate when device configuration changes
- Device configuration changes include updates in attributes parts list, server list,
device type list, cluster revision or feature map in the descriptor cluster
- Add a test to verify the delegate is notified when device configuration changes
* Restyled by clang-format
* Change device list to device type list
* Add accepted commands list and attribute list to the list of attributes that qualify as device configuration changes
* Set _deviceConfigurationChanged to NO in _handleReportEnd
* Update src/darwin/Framework/CHIP/MTRDevice.h
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Apply suggestions from code review
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Addressed review comments
* Restyled by clang-format
* Apply suggestions from code review
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Update code to set _deviceConfigurationChanged correctly in _getAttributesToReportWithReportedValues
- Add more tests to verify that for attributes that don't affect device configuration changed, the
delegate callback is not called. Also add tests for testing an attribute report having multiple
attributes one of which causes device configuration changed.
* Restyled by clang-format
* Add logs to test the multiple attribute report
* Fix the checkAttributeReportTriggersConfigurationChanged API and invert the expectation for device configuration changed when expectConfigurationChanged is set to NO
* Restyled by clang-format
* Apply suggestions from code review
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
* Addressed comments
---------
Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
0 commit comments