You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
why do you think its an issue of asyncua? in the attributes tab it shows the current value so from library side its working!
its more likely an issue in the client software not refreshing!
maybe close and reopen the parent folder/object so it will rebrowse/reread?
Hello, @AndreasHeine !
I have exactly same problem as @PetroGolovnya . The node name rendered in tree view is incorrect (old) even after client software restart.
The client software on the picture above is Prosys OPC UA Browser. I use it as well.
It seems that for tree rendering Prosys uses Browse/Display name aquired via ReferenceDescription. Possibly asyncua does not update Browse/Display name stored in node references or does it incorrectly. You can check this by printing refernce in ViewService._browse after node's Browse name has been updated here:
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: