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 default values for protocol parameters #81

Open
ralphlange opened this issue Sep 9, 2021 · 0 comments
Open

Allow default values for protocol parameters #81

ralphlange opened this issue Sep 9, 2021 · 0 comments

Comments

@ralphlange
Copy link
Contributor

If protocols could set default values for parameters, it would be easier to extend protocols without breaking their database API.

Use case (happened today):
For an "intelligent" modular measurement device, modules may have one or multiple inputs ("subchannels").
The existing protocol supported a module type with one input, so the "select subchannel" command was hard-coded to 1.

An upgrade to support a module with multiple inputs made the subchannel a second parameter, which requires to change all existing databases.
If the protocol were able set a default value for parameter 2, such upgrades could keep compatibilty.

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

No branches or pull requests

2 participants