I am interested in Reading InputArguments and OutputArgument nodes of a Method node from the client. Assuming I have 2 InputArguments and I am trying to read the first InputArgument.
UA_Variant v;
UA_NodeId n = UA_NODEID_NUMERIC(0, node_id_inp_arg);
UA_Client_readValueAttribute(client, n, &v);
UA_Argument* a = (UA_Argument*)v.data;
std::cout<<(char*)a[0].name.data<<"\n"; // Prints junk
std::cout<<a[0].arrayDimensionsSize<<"\n"; // Works
//Need to access other attributes as well
I am doing like the above, but unfortunately not succeeded. Anyone who can help can be greatly appreciated. I would like to do the same thing for OutputArguments as well. Thank you.