Open pankalog opened 8 months ago
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<org.openremote.model.attribute.Attribute<?>>)
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.