gopcua / opcua

Native Go OPC-UA library
MIT License
829 stars 253 forks source link

subscription: add ModifySubscription functionality #714

Open jackchenjc opened 5 months ago

jackchenjc commented 5 months ago

closes #713

Simply add the following code to examples/subscribe/subscribe.go can test this new feature

var params opcua.SubscriptionParameters
params.Interval = time.Millisecond * 2000
_, err = sub.ModifySubscription(ctx, params)
if err != nil {
    log.Fatal(err)
}