-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get data from a new_struct datatype received in a @uamethod #1756
Comments
After a full day of try and suggestion by ChatCPT and ClaudAI (without resoults), for totally case of life I've found the solution. When I create the new_struct based data type in the method argument I get always a data of basic type with raw data.
so in method I have direct data:
Wonderful library !!! |
Hi all,
I'm writing an OPC UA Server using latest version 1.1.5.
The server define a new structure using the:
from asyncua.common.structures104 import new_struct, new_enum, new_struct_field
method to create and add new structure type to OPC UA Server
Create new structure data type and method which use it as argument
uamethod implementation
The data content is:
I was able, in some way, to get data using struct but the code is terrible and complex to maintain:
There is some better and ready to use way to get info from "data" using library functions ?
The text was updated successfully, but these errors were encountered: