diff --git a/samples/simple-client/README.md b/samples/simple-client/README.md index 8816254c2..2f7691e4c 100644 --- a/samples/simple-client/README.md +++ b/samples/simple-client/README.md @@ -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 diff --git a/samples/simple-client/src/main.rs b/samples/simple-client/src/main.rs index 549184787..1bb7f513b 100644 --- a/samples/simple-client/src/main.rs +++ b/samples/simple-client/src/main.rs @@ -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();