Skip to content
New issue

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

How to copy nodes? #6047

Open
2 of 7 tasks
capce opened this issue Oct 9, 2023 · 1 comment
Open
2 of 7 tasks

How to copy nodes? #6047

capce opened this issue Oct 9, 2023 · 1 comment

Comments

@capce
Copy link

capce commented Oct 9, 2023

Hello there,

i want to copy object nodes and insert the copies in the address space as a child of another node. What is the intended way to do this?
Is it to traverse all child nodes, create a new node for each and copy each attribute with the appropriate copy function?
Is there a better/easier or more elegant solution open62541 provides?
I would be thankful for any tip.

Checklist

Please provide the following information:

  • open62541 Version (release number or git tag): 1.3.5
  • Other OPC UA SDKs used (client or server):
  • Operating system: Win 10
  • Logs (with UA_LOGLEVEL set as low as necessary) attached
  • Wireshark network dump attached
  • Self-contained code example attached
  • Critical issue
@JustinF02
Copy link

Hi ! I am looking for the same solution for my project.

This sample here with a server and a client might help you :
https://github.com/open62541/open62541/tree/master/examples/custom_datatype

Theses objects can be requested using a nodeID and contains several values.

If you want to put nodes under a parent node, i suggest looking at this :

pumpTypeConstructor(UA_Server *server,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants