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

SendAttributeEvent() - new MetaItems are not added #15

Open
pankalog opened this issue Dec 18, 2023 · 1 comment
Open

SendAttributeEvent() - new MetaItems are not added #15

pankalog opened this issue Dec 18, 2023 · 1 comment

Comments

@pankalog
Copy link
Member

SendAttributeEvent() ONLY updates the value of the Attribute, not any of the attribute's parameters. We could use this, by retrieving all of the already-created Attributes, seeing if they already exist in the Attribute, and if they do, only parse the value. If we do that, we reduce computation time for each packet.

@pankalog
Copy link
Member Author

There's already an implemented method for this!!

org.openremote.model.attribute.Attribute#getAddedOrModifiedAttributes(java.util.Collection<org.openremote.model.attribute.Attribute>, java.util.Collection>)

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

No branches or pull requests

1 participant