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

Add a setting to ignore some protocols when listening #853

Merged
merged 2 commits into from
Nov 23, 2024

Conversation

Jojo-1000
Copy link

I added the ignored_listen_protocols setting to filter out unnecessary protocols. This improves the receive reliability as discussed in the linked issue.

Closes #845

I decided to use an ignore list rather than a whitelist because any new protocols will always be enabled by default.

Screenshot:
image

Maybe it is not really fitting with the repeats category, it could also be put under the listen channel select.

Also please check my openapi changes, I have no experience with how to use that.

@@ -576,30 +582,6 @@ const TransitionData = TransitionArgs.and(
.passthrough()
);
const postTransitions_Body = TransitionData.and(BulbId);
const PacketMessage = z
Copy link
Owner

Choose a reason for hiding this comment

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

Make sure to run the generator with --export-schemas. This gets used.

@sidoh
Copy link
Owner

sidoh commented Nov 23, 2024

Looks good! openapi spec changes look right. In general if it produces the right types for the frontend it's fine.

There are some integration tests written in ruby that should probably be updated with the new setting. I'm happy to take that, though.

Might be worth creating a new section for "listening." Can put listen repeats, listen channel and this new setting under there.

@Jojo-1000
Copy link
Author

I made a new section "📡 Listening" and fixed the generated parts

@sidoh
Copy link
Owner

sidoh commented Nov 23, 2024

Great! Thanks very much for the PR!

@sidoh sidoh changed the base branch from master to 1.13.1 November 23, 2024 21:49
@sidoh sidoh merged commit f37b20e into sidoh:1.13.1 Nov 23, 2024
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.

Add ability to listen only to a specific protocol
2 participants