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

ping360 update #161

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

ping360 update #161

wants to merge 2 commits into from

Conversation

jaxxzer
Copy link
Member

@jaxxzer jaxxzer commented Jul 16, 2019

The valid range metadata can go into the documentation, provide constants for sensor class, and make it possible to do runtime validations in templates.

@@ -82,12 +105,14 @@
{
"name": "bootloader",
"type": "u8",
"description": "0 = skip bootloader; 1 = run bootloader"
"description": "0 = skip bootloader; 1 = run bootloader",
"default": "0"
Copy link
Member

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.

Copy link
Member Author

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.

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"
Copy link
Member

Choose a reason for hiding this comment

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

missing maximum and minimum.

Copy link
Member Author

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.

@jaxxzer
Copy link
Member Author

jaxxzer commented Aug 5, 2019

Add min/max to common and ping1d.

fix #163

@patrickelectric
Copy link
Member

I'll try to cherry-pick this and move to fields as suggested by @tcanabrava

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