-
Notifications
You must be signed in to change notification settings - Fork 373
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 rename object on running opc ua server? #1766
Comments
why do you think its an issue of asyncua? in the attributes tab it shows the current value so from library side its working! |
Hello, @AndreasHeine ! opcua-asyncio/asyncua/server/address_space.py Line 149 in b1cfae3
Please consider reviewing the issue. |
I had a similar issue. The attributes on the node itself gets updated, but asyncua server stores that information a second time as ReferenceDescription on the parent node. So the result is different if you read data by using node.get_children_descriptions() vs reading by node.read_attribute(). Fazit: changing BrowseName, DisplayName, or TypeDefinition after the node has been created, doesn't work. |
Describe the bug
I trying to rename object on running opc ua server.
From old DisplayName is 'SNMP' to new DisplayName is 'SNMP changed'.
But object name in tree not changed.
Code received new name from redis subscription.
To Reproduce
Here is code example:
`async def object_changed(jval):
org_id = jval["args"]["id"]
query = "SELECT po.id_p, po.address, p.name FROM page_object AS po LEFT JOIN page AS p ON "
query += f"p.id_p=po.id_p WHERE po.id_p={org_id}"
org, = await db.select(query, f"Database error on object {org_id}:")
node_ = server.get_node(ua.NodeId(org_id, 1))
display_name = await node_.read_display_name()
Screenshots

Screenshot attached
Version
Python-Version: 3.11.2 x64
opcua-asyncio Version (e.g. master branch, 0.9): asyncua-1.1.5
The text was updated successfully, but these errors were encountered: