-
Hello, I have got a minimal working example below, but the problem with it is that manual bookmarking of all the nodes is needed. In the example, I create a simple server with a single object node. This node is "augmented" with a custom python property that can be used if I use the original object, but I don't know how to get the "augmented" object from the server. Is that possible? Thanks.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
print(myobj2.hack) # This fails with AttributeError: 'Node' object has no attribute 'hack' --> myobj2 is a plain Node object for sure it creates a new nodeclass instance which dont has that attr |
Beta Was this translation helpful? Give feedback.
-
I understand, the idea is to return only node identifiers (ns=x;i=y) and never expose the internal nodes (I see the internal database is updated here Thanks! |
Beta Was this translation helpful? Give feedback.
I understand, the idea is to return only node identifiers (ns=x;i=y) and never expose the internal nodes (I see the internal database is updated here
https://github.com/FreeOpcUa/opcua-asyncio/blob/2f0c9fc1d40252e08e64242ba0f65465dd077feb/asyncua/server/address_space.py#L280
). I will manual bookmark the nodes as a simple python dictionary (eg.mynodes[myobj.nodeid.to_string()] = myobj
).Thanks!