-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken docs.rs documentation. How to do a simple one time read without subscription? #295
Comments
Besides the broken link in the README.md and not finding Session documentation. |
You can find the Session documentation here. In the Session documentation you'll find the To do a simple read you can then: let mut client = Client::new(config);
let session = client.connect_to_endpoint(..);
let values = session.read(&[ReadValueId], TimestampsToReturn::Both, 0f64); Of course this is pseudo-code. Create an array of NodeId you want to get the value from, convert it into an array of ReadValueId (it implements I hope this was useful. |
Thank you @mfwre, much appreciated! I am not sure if you have time to also look at my question in the discussions #296. Specifically how to list all available variable names/paths/ |
Hi, this is a more tricky answer. The function you listed, As for what parameters to use in the function (#296: I'm referring to the You still need to implement a "recursive" browsing yourself by repeating the |
@kwinz I take it, the second half of this issue is resolved, |
Hi,
https://docs.rs/opcua/0.11.0/opcua/client/index.html shows how to start a subscription, but now how to one time poll/read/write a variable. Neither does the code in https://github.com/locka99/opcua/tree/master/samples
https://docs.rs/opcua/0.11.0/opcua/client/index.html links to
Both of those links are broken. Probably the info how to read a variable was somewhere in that Session documentation?
I also tried https://docs.rs/opcua/0.10.0/opcua/client/session/struct.Session.html but that doesn't work either.
Ironically the only breadcrumb of an example how to do a one off read I found in an old closed issue #93 (although that code is outdated and doesn't compile any more with the current library) and obviously reading the source code helps a bit.
The text was updated successfully, but these errors were encountered: