Get RevisedSamplingRate from server #1523
-
Hello, I currently have the problem that some data from the OPC UA server I'm subscribed to does not arrive in my application, but my customer does receive the data.
In my application, I only see node values 0 and 7, but 5 never arrives. I'm using I'm then using Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
even with period ("PublishingInterval") 1s you would recv the change as long the queue is not full! https://github.com/AndreasHeine/opcua-tutorial/blob/main/client/subscribe.py#L43-L60 edit: the revised params will be available in the subscription-class-instance itself: opcua-asyncio/asyncua/client/client.py Line 746 in bec2907 |
Beta Was this translation helpful? Give feedback.
-
My Problem is not with the PublishInterval (period), but with the sampling rate. example:
In this case I would never receive value = 5, because it changed faster than the OPCUA Server samples data changes. |
Beta Was this translation helpful? Give feedback.
my fault your right...
so you need to rewrite the subscrition.subscribe_data_change part to client.uaclient.create_monitored_items()
opcua-asyncio/asyncua/client/ua_client.py
Line 643 in b9e2af4
similar to:
opcua-asyncio/asyncua/common/subscription.py
Line 450 in b9e2af4