We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When browsing using references, I get a EOL unless I recreate the NodeID.
func browseNext(ctx context.Context, client *opcua.Client, parentNode *ua.NodeID, currentDepth int, maxDepth int) error { refs, err := fastBrowse(ctx, client, parentNode) if err != nil { slog.ErrorContext(ctx, "Failed to browse", "error", err) return err } slog.DebugContext(ctx, "Browse result", "node", parentNode, "count", len(refs)) for _, reference := range refs { if reference.TypeDefinition.NodeID.IntID() == id.FolderType { fmt.Println(strings.Repeat(" ", int(currentDepth)), reference.BrowseName.Name) // id := ua.NewNodeIDFromExpandedNodeID(reference.NodeID) id := reference.NodeID.NodeID if currentDepth < maxDepth { browseNext(ctx, client, id, currentDepth+1, maxDepth) } } else if reference.TypeDefinition.NodeID.IntID() == id.BaseDataVariableType || reference.TypeDefinition.NodeID.IntID() == id.DataItemType || reference.TypeDefinition.NodeID.IntID() == id.AnalogItemType { fmt.Println(strings.Repeat(" ", int(currentDepth)), reference.BrowseName.Name) } else { slog.DebugContext(ctx, "Ignoring node during browse") } } return nil }
Full example code here. Please note that a work around is implemented here. I was testing this with Prosys OPC Simulation Server 5.4.6.
My finding is very similar as on issue #550.
Since this was supposedly fixed in #683, I'm wondering if I'm doing something wrong or if #550 was closed prematurely.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When browsing using references, I get a EOL unless I recreate the NodeID.
Full example code here. Please note that a work around is implemented here.
I was testing this with Prosys OPC Simulation Server 5.4.6.
My finding is very similar as on issue #550.
Since this was supposedly fixed in #683, I'm wondering if I'm doing something wrong or if #550 was closed prematurely.
The text was updated successfully, but these errors were encountered: