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

Investigate Attribute timestamp assignment, and why it's overwritten in AssetStorageService #7

Closed pankalog closed 9 months ago

pankalog commented 10 months ago

Research why Attribute.getTimestamp() is not being used when storing the timestamp as an Attribute Datapoint.

richturner commented 9 months ago

The AssetDatapointService.processAssetUpdate() method is taking the updated attribute timestamp but I believe this issue relates to the updating of an attribute timestamp in AssetProcessingService AttributeEventProcessor camel route

pankalog commented 9 months ago

As a tip for future developers, you should use merge(), as it is synchronous, before sending off the AttributeEvents. That way the asset is first merged with no issues and then all of the already-existing attributes you want to add are going to be added asynchronously.