Closed jackchenjc closed 5 months ago
closes #711
Add SetMonitoringMode functionality and fix the potential issue that leaves the mutex locked.
Simply add the following code to examples/subscribe/subscribe.go can test this new feature
examples/subscribe/subscribe.go
resp, err := sub.SetMonitoringMode(ctx, ua.MonitoringModeSampling, res.Results[0].MonitoredItemID) if err != nil || resp.Results[0] != ua.StatusOK { log.Fatal(err) }
Not sure if we should update item.req.MonitoringMode while getting ua.StatusOK.
item.req.MonitoringMode
ua.StatusOK
closes #711
Add SetMonitoringMode functionality and fix the potential issue that leaves the mutex locked.
Simply add the following code to
examples/subscribe/subscribe.go
can test this new feature