Replies: 2 comments 2 replies
-
Maybe the server is doesn't support the new datatype description. |
Beta Was this translation helpful? Give feedback.
-
If you have custom data types on OPC Server, It would be nice to load them first either by creating task for that or wait for load. task_load_types = asyncio.create_task(client.load_type_definitions()) Method load_type_definitions is supported only in versions <= 1.04 and is now deprecated. For newer versions for loading custom types (structures/extension objects) definition from server use method load_data_type_definitions. I recommend either installing version 1.04 and keeping the compatibility or going to a higher version with a new call. |
Beta Was this translation helpful? Give feedback.
-
I am trying to instantiate a custom structure type following the guidance in #839 (Usage of Extension Objects). The structure (ScanSettings) is defined and browsable. But after calling
load_data_type_definitions
I get an error trying to instantiate the expected class. Running the following snippet prints the structure type's browse name then hits anAttributeError
onua.ScanSettings()
.What am I missing here?
Beta Was this translation helpful? Give feedback.
All reactions