new file directory created but it lacks the CreateFile method among its children #1287
ConorHartin
started this conversation in
General
Replies: 1 comment 11 replies
-
You can have a look how too instantiate a object see examples/server-instantiate-object.py |
Beta Was this translation helpful? Give feedback.
11 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.
-
I have asked the question here https://stackoverflow.com/questions/76047913/opc-ua-asyncua-python-new-file-directory-created-but-it-lacks-the-createfile-me but since the SO question I linked to didn't get any responses I figure it's worth asking here as well.
As far as I can tell, a mere Folder (created by the create_folder method) can contain nodes, but not actual files. For that, to support file transfers using ua_file_transfer, I would need a file directory. Unfortunately, manage_nodes does not have a create_file_directory method analogous to create_folder. I attempted to create my own method, but the resulting object still fails to find the CreateFile child when I call the UaDirectory's create_file method on it:
The FileDirectory type clearly exists in standard_address_space_services and ObjectIds, but I can't find a way to construct one with the expected CreateFile method as a child.
Beta Was this translation helpful? Give feedback.
All reactions