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

[occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4) #34293

Merged
merged 17 commits into from
Jul 29, 2024

Conversation

OliverFan1
Copy link
Contributor

  • Updated occupancy sensing cluster SDK implementation based on XML changes(PR#34163) for Occupancy Sensing rev 5

  • Updated occupancy sensing cluster sample app(all-clusters-app) implementation to Rev 5 in the zap and matter file of all-clusters-app

  • Remove "occupancy-sensor-server" from "ClientDirectories" in zap_cluster_list.json to resolve a building issue found from rebuilding the chip-tool

OliverFan1 and others added 2 commits July 10, 2024 19:19
@CLAassistant
Copy link

CLAassistant commented Jul 11, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

github-actions bot commented Jul 11, 2024

PR #34293: Size comparison from c70a769 to c190ab5

Full report (6 builds for cc32xx, mbed, stm32, tizen)
platform target config section c70a769 c190ab5 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606406 606406 0 0.0
RAM 204508 204508 0 0.0
lock CC3235SF_LAUNCHXL FLASH 651466 651466 0 0.0
RAM 204780 204780 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1502644 1502644 0 0.0
RAM 226648 226648 0 0.0
stm32 light STM32WB5MM-DK FLASH 473688 474264 576 0.1
RAM 144196 144220 24 0.0
tizen all-clusters-app arm unknown 1584 1584 0 0.0
FLASH 1639156 1640884 1728 0.1
RAM 48548 48616 68 0.1
chip-tool-ubsan arm unknown 2384 2384 0 0.0
FLASH 16293430 16293430 0 0.0
RAM 7156248 7156248 0 0.0

OliverFan1 and others added 6 commits July 16, 2024 19:20
* Avoid mixing code-backed and Attribute-store-backed attributes
* Avoid global singletons to maintain state
* Initialize the cluster from the application
* Report features based on code, not on ZAP-configured values

Signed-off-by: Oliver Fan <[email protected]>
OliverFan1 and others added 3 commits July 19, 2024 09:53
change mHoldTimeLimitsStructs and mHoldTime to sHoldTimeLimitsStructs and sHoldTime
put above two variables in an anonymous namespace

Signed-off-by: Oliver Fan <[email protected]>
@OliverFan1
Copy link
Contributor Author

Can anybody help to merge, if it's approved? Thank you

@woody-apple woody-apple merged commit c55864b into project-chip:master Jul 29, 2024
68 of 69 checks passed
tcarmelveilleux pushed a commit to tcarmelveilleux/connectedhomeip that referenced this pull request Jul 29, 2024
…(all-clusters-app) implementation to Rev 5 (Matter 1.4) (project-chip#34293)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4)

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Apply suggestions from code review

Update Copyright suggestions

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review, remove some dead code.

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

* Apply suggestions from code review
* Avoid mixing code-backed and Attribute-store-backed attributes
* Avoid global singletons to maintain state
* Initialize the cluster from the application
* Report features based on code, not on ZAP-configured values

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Update examples/all-clusters-app/all-clusters-common/src/occupancy-sensing-stub.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review
change mHoldTimeLimitsStructs and mHoldTime to sHoldTimeLimitsStructs and sHoldTime
put above two variables in an anonymous namespace

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
mergify bot pushed a commit that referenced this pull request Jul 30, 2024
* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4) (#34293)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4)

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Apply suggestions from code review

Update Copyright suggestions

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review, remove some dead code.

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

* Apply suggestions from code review
* Avoid mixing code-backed and Attribute-store-backed attributes
* Avoid global singletons to maintain state
* Initialize the cluster from the application
* Report features based on code, not on ZAP-configured values

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Update examples/all-clusters-app/all-clusters-common/src/occupancy-sensing-stub.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review
change mHoldTimeLimitsStructs and mHoldTime to sHoldTimeLimitsStructs and sHoldTime
put above two variables in an anonymous namespace

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>

* Don't try to built occupancy-sensor-server as part of the ESP light-switch app.

This app does not actually use occupancy-sensor-server, which means that
ZAP-provided information the cluster server implementation needs is not
available.  And light-switch-app does not use occupancy sensor in any way.

* Don't try to built occupancy-sensor-server as part of the ESP energy-management-app.

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Oliver FAN <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
j-ororke pushed a commit to j-ororke/connectedhomeip that referenced this pull request Jul 31, 2024
…(all-clusters-app) implementation to Rev 5 (Matter 1.4) (project-chip#34293)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4)

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Apply suggestions from code review

Update Copyright suggestions

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review, remove some dead code.

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

* Apply suggestions from code review
* Avoid mixing code-backed and Attribute-store-backed attributes
* Avoid global singletons to maintain state
* Initialize the cluster from the application
* Report features based on code, not on ZAP-configured values

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Update examples/all-clusters-app/all-clusters-common/src/occupancy-sensing-stub.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review
change mHoldTimeLimitsStructs and mHoldTime to sHoldTimeLimitsStructs and sHoldTime
put above two variables in an anonymous namespace

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
j-ororke pushed a commit to j-ororke/connectedhomeip that referenced this pull request Jul 31, 2024
)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4) (project-chip#34293)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4)

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Apply suggestions from code review

Update Copyright suggestions

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review, remove some dead code.

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

* Apply suggestions from code review
* Avoid mixing code-backed and Attribute-store-backed attributes
* Avoid global singletons to maintain state
* Initialize the cluster from the application
* Report features based on code, not on ZAP-configured values

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Update examples/all-clusters-app/all-clusters-common/src/occupancy-sensing-stub.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review
change mHoldTimeLimitsStructs and mHoldTime to sHoldTimeLimitsStructs and sHoldTime
put above two variables in an anonymous namespace

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>

* Don't try to built occupancy-sensor-server as part of the ESP light-switch app.

This app does not actually use occupancy-sensor-server, which means that
ZAP-provided information the cluster server implementation needs is not
available.  And light-switch-app does not use occupancy sensor in any way.

* Don't try to built occupancy-sensor-server as part of the ESP energy-management-app.

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Oliver FAN <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this pull request Jul 31, 2024
…(all-clusters-app) implementation to Rev 5 (Matter 1.4) (project-chip#34293)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4)

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Apply suggestions from code review

Update Copyright suggestions

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review, remove some dead code.

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

* Apply suggestions from code review
* Avoid mixing code-backed and Attribute-store-backed attributes
* Avoid global singletons to maintain state
* Initialize the cluster from the application
* Report features based on code, not on ZAP-configured values

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Update examples/all-clusters-app/all-clusters-common/src/occupancy-sensing-stub.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review
change mHoldTimeLimitsStructs and mHoldTime to sHoldTimeLimitsStructs and sHoldTime
put above two variables in an anonymous namespace

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this pull request Jul 31, 2024
)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4) (project-chip#34293)

* [occupancy-sensing]Updated occupancy sensing cluster SDK & Sample app(all-clusters-app) implementation to Rev 5 (Matter 1.4)

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Apply suggestions from code review

Update Copyright suggestions

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review, remove some dead code.

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

* Apply suggestions from code review
* Avoid mixing code-backed and Attribute-store-backed attributes
* Avoid global singletons to maintain state
* Initialize the cluster from the application
* Report features based on code, not on ZAP-configured values

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by whitespace

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Restyled by clang-format

* Update examples/all-clusters-app/all-clusters-common/src/occupancy-sensing-stub.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Apply suggestions from code review
change mHoldTimeLimitsStructs and mHoldTime to sHoldTimeLimitsStructs and sHoldTime
put above two variables in an anonymous namespace

Signed-off-by: Oliver Fan <[email protected]>

* Restyled by clang-format

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>

* Don't try to built occupancy-sensor-server as part of the ESP light-switch app.

This app does not actually use occupancy-sensor-server, which means that
ZAP-provided information the cluster server implementation needs is not
available.  And light-switch-app does not use occupancy sensor in any way.

* Don't try to built occupancy-sensor-server as part of the ESP energy-management-app.

---------

Signed-off-by: Oliver Fan <[email protected]>
Co-authored-by: Oliver FAN <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

6 participants