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

test: test edge trigger property with init: true connection #11

Open
wants to merge 5 commits into
base: gpio_default_period
Choose a base branch
from

Conversation

eduardacoppo
Copy link

@eduardacoppo eduardacoppo commented Jan 30, 2025

What is this PR for

When pure input GPIOs are edge-triggered, we don't get updates regularly, which makes any dynamic connection to it inoperable. I.e. a reader that is created while the task is running won't get the current state of the I/O

This task is to make sure that it would work with init: true. This policy flag requests that the connection sends the last value written to it, but it requires changes on the component side (the ports need to be configured to save said last value).

This PR tests this setup

the edge triggered functionality only really works when the edge_triggered_output flag is true and the connection has the `init: true` flag, so the keep_last_written_value can be kept as true by default without major drawbacks.
@eduardacoppo eduardacoppo force-pushed the test_edge_trigger_property branch 2 times, most recently from c863471 to 2096cfe Compare January 30, 2025 19:33
organize tests into general functionality and tests for init: true, which need a particular setup
the "fails to configure if a GPIO does not exist" was duplicated
@eduardacoppo eduardacoppo force-pushed the test_edge_trigger_property branch from 2096cfe to ccb72ba Compare January 30, 2025 19:45
@doudou doudou requested review from doudou and jhonasiv February 4, 2025 14:50
fixes the break_and_reestablish_connection function
gives better and more descriptive names to the tasks
simplifies tests
code cleaning in general
@eduardacoppo eduardacoppo requested a review from doudou February 5, 2025 16:35
@doudou
Copy link
Member

doudou commented Feb 6, 2025

@eduardacoppo fala comigo quando os testes passaram, acho que eu tenho de fazer merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants