Page 1 of 1

Modelling method with optional input arguments

Posted: 09 Nov 2017, 00:52
by thowafs
Hello,

is it possible to specify if input arguments of methods are mandatory (must not be null) or optional (can be null)?

We have created a method with an input argument of type UInt32. It should be possible to call this method by a client with null as argument, but the code generation for the c++-server-stack is checking for non-null and returns BadOutOfRange.

Sincerely yours.

Re: Modelling method with optional input arguments

Posted: 15 Jun 2018, 06:23
by Support Team
Hello,

In OPC UA all method arguments are mandatory. If you want to use optional method arguments, you have to update the generated code manually.