Open schroeder- opened 5 years ago
@schroeder- Did you mean the code you provided above fix the issue ? I'm facing a problem in the receiver's side while receiving custom data structure. I receive ExtensionObject with data that is zero always, checking by wireshark and UA Expert I'm sure that the data is sending properly.
Description
When you trie to read an array with type of custom datatypes, you get an ExtensionObject instead of the custom data type. You can extract the array from the ExtensionObject, but its not as expected. When reading a scalar value everything works fine.
It looks like it is a problem in the client code, because I found the problem when writing client code for a server that is using the Softing Toolkit.
Background Information / Reproduction Steps
Take examples/custom_datatype/client_types_custom.c and after UA_Client_readValueAttribute add:
in examples/custom_datatype/server_types_custom.c replace add3PointDataType and add3DPointVariable:
Checklist
Please provide the following information:
UA_LOGLEVEL
set as low as necessary) attached