openremote / fleet-management

The Fleet Management/Telematics implementation on top of the OpenRemote open-source IoT device management platform.
https://openremote.io/fleet-telematics/
Other
12 stars 3 forks source link

SendAttributeEvent() - new MetaItems are not added #15

Open pankalog opened 8 months ago

pankalog commented 8 months ago

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 commented 7 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<?>>)