Problem with datachange notification #1685
Replies: 2 comments 1 reply
-
It is always hard to be sure but due to the way things are implemented I think this is a sever issue. On the client side we just forward to python what we receive from server. We never create an event on our own |
Beta Was this translation helpful? Give feedback.
-
Ok, I think I might have found the issue, and it looks to be a client issue. As it looks, when an exception is thrown, my client does not handle the cleanup correctly, meaning when reconnecting, it adds additional monitored items to the subscription. So, if it connects for the first time and adds, for example, 10 items, when reconnecting, it adds another 10, leaving me with 20 monitored items in total. This explains why this only happens over time and disappears when restarting the client. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a strange behaviour of my subscriptions. When subscribing to multiple nodes (around 10) the subscription works as expected -> generating datachange_notification when the value has changed. But after some time (and this can vary from a couple of hours to days) I get one data_notification for the same MonitoredItem where the value is the same but the timestamp has changed slightly.
Here is a shorten example of such a notification
The subscription is configure with the publishing Interval set to 500ms. And this is my code so far:
I have no idea why this happens and if its a client issue or a server issue although this happens on multiple different servers. If i restart the client this behaviour disapears (at least for a while) which indicates that it must come from the client.
Has someone had a similar problem or is there a way to better debug this behaviour.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions