handleMethodNode dont use arguments
allreadyexists opened this issue · 2 comments
I try to use nodesetLoader for load xml file contains Method with Arguments, but client don't see Arguments. In source code i see that method ignore Arguments(set it is NULL):
static void
handleMethodNode(const NL_MethodNode *node, UA_NodeId *id,
const UA_NodeId *parentId, const UA_NodeId *parentReferenceId,
const UA_LocalizedText *lt, const UA_QualifiedName *qn,
const UA_LocalizedText *description, UA_Server *server)
{
UA_MethodAttributes attr = UA_MethodAttributes_default;
attr.executable = isValTrue(node->executable);
attr.userExecutable = isValTrue(node->userExecutable);
attr.displayName = *lt;
attr.description = *description;
UA_Server_addMethodNode(server, *id, *parentId, *parentReferenceId, *qn,
attr, NULL, 0, NULL, 0, NULL, node->extension,
NULL);
}
Can you fix it?
please propose a PR, thank you
Input and output arguments are modelled with properties (variables with hasProperty reference) below the method. If these properties are in the nodeset, the should get imported and the client can read this properties for getting the args.
Please check your xml file for these properties.