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

Allow to limit the amount of devices in response #25

Open
rosetree opened this issue Dec 9, 2019 · 0 comments
Open

Allow to limit the amount of devices in response #25

rosetree opened this issue Dec 9, 2019 · 0 comments
Labels
good first issue Good for newcomers

Comments

@rosetree
Copy link
Collaborator

rosetree commented Dec 9, 2019

Add an optional limit query parameter to the sensor type resources. This could be used if multiple devices for a single sensor type class are connected, but only one is required. The query parameter could look like limit=n where n in [1 ..]).

This would need to be added in _saul_type_handler. Before the loop for all devices begins.

Follow-Up to #8.

@rosetree rosetree added the good first issue Good for newcomers label Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant