-
Notifications
You must be signed in to change notification settings - Fork 16
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
ping360 update #161
base: master
Are you sure you want to change the base?
ping360 update #161
Conversation
@@ -82,12 +105,14 @@ | |||
{ | |||
"name": "bootloader", | |||
"type": "u8", | |||
"description": "0 = skip bootloader; 1 = run bootloader" | |||
"description": "0 = skip bootloader; 1 = run bootloader", | |||
"default": "0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minimum and maximum are missing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a range value. It is an enumeration. I think range does not make sense here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's an enum, it's better to use identifiers instead of integers in the json
}, | ||
{ | ||
"name": "transmit", | ||
"type": "u8", | ||
"description": "0 = do not transmit; 1 = transmit after the transducer has reached the specified angle" | ||
"description": "0 = do not transmit; 1 = transmit after the transducer has reached the specified angle", | ||
"default": "0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing maximum and minimum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a range value. It is an enumeration. I think range does not make sense here.
Add min/max to common and ping1d. fix #163 |
I'll try to cherry-pick this and move to fields as suggested by @tcanabrava |
The valid range metadata can go into the documentation, provide constants for sensor class, and make it possible to do runtime validations in templates.