Skip to main content
Jul 18, 2018 10:47 PM UTC
Solved

Subscribe to a ValueStream update

Are you able to subscribe to the update of a ValueStream that is assigned to a Thing to store the information of logged properties? The DataTable entity has 4 additional events that monitor for updates, deletions, etc. However the ValueStream does not have anything similar.

Jul 19, 2018 5:34 PM UTC

I had the same problem, and what I did it's the subscription to DataChange event check if an event on the same timestamp as been raised, on that case I've ignore the second event.

5 replies

Jul 19, 2018 10:51 AM UTC

Can you describe the use case? I believe that there will be some easier way to resolve your problem.

agondekAuthor
Jul 19, 2018 3:29 PM UTC

Effectively, I need to mimic a subscription to a data change event. The problem with subscribing to the data change event now is that there is an issue with the remote binding which causes the data change event to fire twice for the exact same value and timestamp. This issue has been raised to PTC as an open support ticket and in the meantime I am looking for a workaround.

Jul 19, 2018 5:34 PM UTC

I had the same problem, and what I did it's the subscription to DataChange event check if an event on the same timestamp as been raised, on that case I've ignore the second event.