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: Add Event Trigger support for all samples #14511

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

ArekBalysNordic
Copy link
Contributor

Matter test events can be used by the Matter controller
to trigger specific device's behavior.

Added a mechanism to register event triggers and use their
callbacks through Matter Controller.

Added the documentation page to describe the mechanism and
create a list of the currently available default event triggers.

@github-actions github-actions bot added the doc-required PR must not be merged without tech writer approval. label Mar 14, 2024
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Mar 14, 2024

Test specification

CI/Jenkins/NRF

  • Integration Platforms

CI/Jenkins/integration

Test Module File based changes Manually selected West overwrite

Detailed information of selected test modules

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

Copy link
Contributor

@wiba-nordic wiba-nordic left a comment

Choose a reason for hiding this comment

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

Will review the rest of the documents later today.

@ArekBalysNordic ArekBalysNordic force-pushed the event_triggers branch 2 times, most recently from 80a28a5 to 8ec8f96 Compare March 14, 2024 11:27
@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds.

Note: This comment is automatically posted by the Documentation Publishing GitHub Action.

@ArekBalysNordic ArekBalysNordic force-pushed the event_triggers branch 2 times, most recently from d1d48c9 to 891369e Compare March 14, 2024 15:48
Copy link
Contributor

@wiba-nordic wiba-nordic left a comment

Choose a reason for hiding this comment

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

Also need to fix the trailing white spaces to pass compliance.

@NordicBuilder
Copy link
Contributor

NordicBuilder commented Mar 18, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
matter nrfconnect/sdk-connectedhomeip@8bfa6ae nrfconnect/sdk-connectedhomeip@70be330 (master) nrfconnect/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@ArekBalysNordic
Copy link
Contributor Author

@wiba-nordic I've added the new section to docs: Register an existing test event trigger handler

Copy link
Contributor

@wiba-nordic wiba-nordic left a comment

Choose a reason for hiding this comment

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

One little improvement, but otherwise this is looking good.

@ArekBalysNordic
Copy link
Contributor Author

@LuDuda @wiba-nordic I've moved information regarding certification to the top of the page. Could you please verify whether it is more clear now?

@markaj-nordic I edited FiniteMap, and now the key can be various, please verify it :)

Copy link
Contributor

@LuDuda LuDuda left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Assuming comment is resolved :)

When you provide the enable key using factory data, you can utilize the event trigger feature during the Matter Certification process.
This is because, when done this way, you can turn off the event trigger functionality by disabling access to the ``generaldiagnostics`` cluster without altering the code that has already been certified.

Once the certification process is complete, you can deactivate the test event trigger functionality by generating new factory data with a modified enable key value.
Copy link
Contributor

Choose a reason for hiding this comment

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

you can or you must -- or my understanding is wrong?

Moved finite map implementation from bridge_util to common util
to make it available for all samples.

Made the finite map more versatile, by defining the key as
a template of trivial typename.

Signed-off-by: Arkadiusz Balys <[email protected]>
Matter test events can be used by the Matter controller
to trigger specific device's behavior.

Added a mechanism to register event triggers and use their
callbacks through Matter Controller.

Added the documentation page to describe the mechanism and
create a list of the currently available default event triggers.

Signed-off-by: Arkadiusz Balys <[email protected]>
@NordicBuilder NordicBuilder removed the DNM label Mar 26, 2024
@rlubos rlubos merged commit b2a3d87 into nrfconnect:main Mar 26, 2024
13 of 14 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. manifest manifest-matter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants