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.
Modelling method with optional input arguments
Moderator: uamodeler
-
- Jr. Member
- Posts: 1
- Joined: 09 Nov 2017, 00:30
- Support Team
- Hero Member
- Posts: 3071
- Joined: 18 Mar 2011, 15:09
Re: Modelling method with optional input arguments
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.
In OPC UA all method arguments are mandatory. If you want to use optional method arguments, you have to update the generated code manually.
Best regards
Unified Automation Support Team
Unified Automation Support Team