You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm defining a struct for the custom ExtensionObject and registering it during runtime with the appropriate NodeId and Data structure as specified in UAExpert:
When I call the Method "RegisterApplication" (objectId: "ns=3,i=141", methodId: "ns=3,i=146") after connecting to a GDS server, with InputArguments set to an instance of ApplicationRecordDataType , I'm receiving an ErrorBadInvalidArgument | 0x80ab0000 | 2158690304 | One or more arguments are invalid
Before this approach I also tried overwriting the variant.go file to accept ApplicationRecordDataType as a built-in type and passed appRecord without converting it into an ExtensionObject like:
This resulted in BadDecodingError | 0x80070000 | 2147942400 | Decoding halted because of invalid data in the stream. Method call works alright with functions that accept simple built-in datatypes as inputArguments, maybe I'm just not structuring the data in the right way. It'd be great if someone could help me resolve this. Thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm defining a struct for the custom
ExtensionObject
and registering it during runtime with the appropriate NodeId and Data structure as specified in UAExpert:When I call the Method "RegisterApplication" (objectId: "ns=3,i=141", methodId: "ns=3,i=146") after connecting to a GDS server, with
InputArguments
set to an instance of ApplicationRecordDataType , I'm receiving an ErrorBadInvalidArgument | 0x80ab0000 | 2158690304 | One or more arguments are invalid
Below is the code for your reference:
Before this approach I also tried overwriting the
variant.go
file to accept ApplicationRecordDataType as a built-in type and passed appRecord without converting it into an ExtensionObject like:This resulted in
BadDecodingError | 0x80070000 | 2147942400 | Decoding halted because of invalid data in the stream
. Method call works alright with functions that accept simple built-in datatypes as inputArguments, maybe I'm just not structuring the data in the right way. It'd be great if someone could help me resolve this. Thanks in advance!Beta Was this translation helpful? Give feedback.
All reactions