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

samples: matter: Added custom events to the Matter MS sample #21066

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

kkasperczyk-no
Copy link
Contributor

Added custom events to NordicDevKit and Basic Information clusters:

  • UserButtonChanged emitted on UserButton state change
  • RandomNumberChanged emitted on RandomNumber change

Updated the documentation to contain steps for the events.

Additionally fixed ids for attributes and commands that were not compatible with the spec and fixed few minor issues in the documentation.

@kkasperczyk-no kkasperczyk-no requested review from a team as code owners March 20, 2025 13:40
@github-actions github-actions bot added doc-required PR must not be merged without tech writer approval. changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. labels Mar 20, 2025
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Mar 20, 2025

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 5

Inputs:

Sources:

sdk-nrf: PR head: bd80505cbe906faa4121d73987beb16c676dbbf5

more details

sdk-nrf:

PR head: bd80505cbe906faa4121d73987beb16c676dbbf5
merge base: 385e5bff216e8c4c3f45dc0475d14d540e517f0b
target head (main): 63e21383d359e557f96b5ed8c8c400606b676078
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (13)
doc
│  ├── nrf
│  │  ├── protocols
│  │  │  ├── matter
│  │  │  │  ├── getting_started
│  │  │  │  │  │ custom_clusters.rst
samples
│  ├── matter
│  │  ├── manufacturer_specific
│  │  │  ├── README.rst
│  │  │  ├── src
│  │  │  │  ├── app_task.cpp
│  │  │  │  ├── default_zap
│  │  │  │  │  ├── NordicDevKitCluster.xml
│  │  │  │  │  ├── manufacturer_specific.zap
│  │  │  │  │  ├── zap-generated
│  │  │  │  │  │  ├── app-common
│  │  │  │  │  │  │  ├── zap-generated
│  │  │  │  │  │  │  │  ├── attributes
│  │  │  │  │  │  │  │  │  ├── Accessors.cpp
│  │  │  │  │  │  │  │  │  │ Accessors.h
│  │  │  │  │  │  │  │  ├── cluster-objects.cpp
│  │  │  │  │  │  │  │  ├── cluster-objects.h
│  │  │  │  │  │  │  │  ├── ids
│  │  │  │  │  │  │  │  │  ├── Attributes.h
│  │  │  │  │  │  │  │  │  ├── Commands.h
│  │  │  │  │  │  │  │  │  │ Events.h
│  │  │  │  │  │  │ endpoint_config.h

Outputs:

Toolchain

Version: 4ffa2202d5
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:4ffa2202d5_e579f9fbe6

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ✅ Build twister
    • sdk-nrf test count: 97
  • ✅ Integration tests
    • ✅ test-fw-nrfconnect-chip
Disabled integration tests
    • desktop52_verification
    • doc-internal
    • test-fw-nrfconnect-apps
    • test-fw-nrfconnect-ble_samples
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-fem
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_cloud
    • test-fw-nrfconnect-nrf-iot_libmodem-nrf
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-proprietary_esb
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-rs
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-low-level
    • test-sdk-audio
    • test-sdk-dfu
    • test-sdk-find-my
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-wifi
    • test-secdom-samples-public

Note: This message is automatically posted and updated by the CI

Copy link

@@ -153,6 +153,8 @@ See the description of each element in the following tabs:
* ``source`` - Specifies whether the event originates from the client or server.
* ``code`` - A unique identifier for the event within the cluster.
* ``name`` - The name of the event.
* ``priority`` - The priority of the event.
The valid values are 'debug', 'info', and 'critical'.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The valid values are 'debug', 'info', and 'critical'.
The valid values are 'debug', 'info', and 'critical'.

Should these be between double backticks. Or is that single quote character needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that double backticks should be good, thanks for the catch.

Added custom events to NordicDevKit and Basic Information
clusters:
* UserButtonChanged emitted on UserButton state change
* RandomNumberChanged emitted on RandomNumber change

Updated the documentation to contain steps for the events.

Additionally fixed ids for attributes and commands that were not
compatible with the spec and fixed few minor issues in
the documentation.

Signed-off-by: Kamil Kasperczyk <kamil.kasperczyk@nordicsemi.no>
Copy link

Copy link
Contributor

@ArekBalysNordic ArekBalysNordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider aligning clang format settings.

@kkasperczyk-no kkasperczyk-no requested a review from peknis March 21, 2025 11:53
@ArekBalysNordic ArekBalysNordic removed the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Mar 21, 2025
@ArekBalysNordic ArekBalysNordic merged commit b78c12e into nrfconnect:main Mar 21, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-required PR must not be merged without tech writer approval.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants