-
Notifications
You must be signed in to change notification settings - Fork 307
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
advertiseRange is missing #701
Comments
It seam like arrays (or ranges as it is named in the ESP826 implementation) was moved from properties to nodes so for a node you can define an array, but the documentation tells you nothing about it. This is the documentation from the API: So the only thing needed seams to be updating the documentation (however, the arrays seams to be removed in the version 4 of the Homie standard?) |
More errors in the documentation ... Does anybody actually use this? Has the code been tested and does it work? |
I can confirm that the code seams to be working, it's only the documentation that needs to be updated. |
I never used ranges. Since you already figured it out, would you be so kind to create a PR for the necessary doc changes? |
I have made a pull request on all updates i have spotted. |
Does #703 close this issue? |
In version 3 the function
advertiseRange(const char* property, uint16_t lower, uint16_t upper)
is missing.This might be on purpose, since the functionality can be achieved in other ways, but then the parameter range should be removed from all input handlers and the documentation updated.
As of today, the range is detected from the property name if it contains n underscore, the last part of the name is the range index. This is however unfortunate for two reasons:
Since the function advertiseRange was removed for two years ago and nobody reported it before it can't be a particularly widely used function. Therefore a removal of all functionality regarding ranges might be the best solution and instead include a nice example of how this could be achieved in user code. This would also have the nice effect of shrinking the code size.
The text was updated successfully, but these errors were encountered: