Monitored item refresh rate #163
-
Hi, Thanks for your work on this rust opcua implementation ! ❤️ I'm currently investigating the use of rust opcua as a replacement of our distributed process communication protocol. One of the test consist in a client retrieving the value of a node use the MonitoredItem service. The node is a simple integer counter incremented every 100ms via The problem is either in a simple client, or in UAExpert, I'm not able to get all the values. Sometimes there is several seconds between 2 updates in the client, even if the publishing interval is set to 100ms and the queue is 10 items long. Is there a setting I have overlooked ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Beta Was this translation helpful? Give feedback.
-
Thanks @schroeder- . My server is built using the following code: let mut server: Server = ServerBuilder::new()
.application_name("producer")
.application_uri("urn:producer")
.product_uri("urn:producer")
.discovery_server_url(Some(constants::DEFAULT_DISCOVERY_SERVER_URL.to_string()))
.endpoints(vec![("none", ServerEndpoint::new_none(path, &user_token_ids))])
.discovery_urls(vec![path.into()])
.server().unwrap(); Is it possible to set the intervals here ? Or do I need to resort to a configuration file or build Server from a ServerConfig struct ? |
Beta Was this translation helpful? Give feedback.
-
Try this:
|
Beta Was this translation helpful? Give feedback.
-
It was pretty obvious in the end. I'm learning opcua the spec, opcua the rust implementation and rust itself, my brain is overheating. Thanks @schroeder- |
Beta Was this translation helpful? Give feedback.
Try this: