load_type_definitions not working #1506
acuna-luis
started this conversation in
General
Replies: 1 comment
-
|
This library is not supported anymore try asyncua |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am working with a S7-1200 but I can't read a structure properly. My output before and after load_type_definitions
BEFORE
node object ns=4;i=5
node object value ExtensionObject(TypeId:FourByteNodeId(ns=4;i=4), Encoding:1, 2176 bytes)
params obj {'server': <opcua.client.ua_client.UaClient object at 0x7f4fa8452f40>, 'nodeid': NumericNodeId(ns=4;i=5), 'basenodeid': None}
AFTER self.client.load_type_definitions()
node object ns=4;i=5
node object value ExtensionObject(TypeId:FourByteNodeId(ns=4;i=4), Encoding:1, 2176 bytes)
params obj {'server': <opcua.client.ua_client.UaClient object at 0x7f4fa8452f40>, 'nodeid': NumericNodeId(ns=4;i=5), 'basenodeid': None}
'_freeze': True}
And when accessing an existing atribute I got error.
ERROR
OPCUA Exception: <class 'AttributeError'>
Traceback (most recent call last):
File "/home/lacuna/dsa/internal/hw-dashboard/flow-control-operator/modules/devices.py", line 549, in update_DB
print("hola", hola.disponible)
AttributeError: 'ExtensionObject' object has no attribute 'disponible'
The code is:
Beta Was this translation helpful? Give feedback.
All reactions