Skip to content

Commit

Permalink
Create a sample keypair for simple client.
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Aug 31, 2019
1 parent bb37236 commit c120f4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions samples/simple-client/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
To run this sample:

1. Launch either the `samples/simple-server`, or `3rd-party/node-opcua-server`. Both servers expose the same variables.
2. a) `cargo run`, or b) `cargo run -- --subscribe`
2. Run as `cargo run`

Without an argument the client will connect to the server, read and print out the current values of v1, v2, v3 v4 and terminate.

With the `--subscribe` argument the client will connect to the server, create a subscription and monitor changes on v1,
v2, v3, v4 and continue to print out changes without terminating.
The client connects to the server, creates a subscription to variables v1,
v2, v3, v4 and continues to print out changes to those values without terminating.

## Crypto

Expand Down
1 change: 1 addition & 0 deletions samples/simple-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ fn main() {
.application_name("Simple Client")
.application_uri("urn:SimpleClient")
.trust_server_certs(true)
.create_sample_keypair(true)
.session_retry_limit(0)
.client().unwrap();

Expand Down

0 comments on commit c120f4c

Please sign in to comment.