Hi everyone,
I'm trying to read an UDT from a Siemens PLC but I'm not able to do this. So I need your help.
Below is the code I wrote and the contents of the variable after reading.
UA_Variant *val = UA_Variant_new();
UA_Variant_init(val);
UA_Client_readValueAttribute(client, UA_NODEID_STRING(3, "\"DB_OPC_UA\".\"UDT\""), val);
UA_ExtensionObject * UA_UDT = (UA_ExtensionObject *)val->data;
The UDT is made up of the following data
How can I get the value of INTEGER_VALUE and FLOAT_VALUE from the ExtensionObject?
Thanks for your precious help!!
Best regards,
Mattia