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

When copy_node is used, BrowseName is not updated #1611

Open
hirschenberger opened this issue Apr 3, 2024 · 0 comments
Open

When copy_node is used, BrowseName is not updated #1611

hirschenberger opened this issue Apr 3, 2024 · 0 comments

Comments

@hirschenberger
Copy link

I have a template object that I want to clone multiple times to create my device nodes.

I have the following server code snippet:

        await self.server.import_xml(os.path.join(self.model_filepath, "../my_model.xml"))

        node = await copy_node(await self.server.nodes.objects.get_child(["3:DeviceSet", "3:MyDeviceSet"]), 
                               await self.server.nodes.objects.get_child(["3:DeviceSet", "3:MyDeviceSet","6:Template"]), 
                               ua.NodeId(0, 6), 
                               True)
        await node[0].write_attribute(ua.attribute_ids.AttributeIds.DisplayName, ua.DataValue(ua.Variant(ua.LocalizedText("Device A"))))
        await node[0].write_attribute(ua.attribute_ids.AttributeIds.BrowseName, ua.DataValue(ua.Variant(ua.QualifiedName("Device A", 6))))

My model loads correctly and the Template node is displayed with it's initial display and browsename.
But the copy of my template does also still have this name displayed in the UaExpert client address space on the right, although the values are different in the attributes view on the left.

I also tried the python opensource client and it shows the same behaviour. Why do these two views converge when I update the attributes?

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

1 participant