How to Parse complex Variant_Array Matrix
Posted: 04 Sep 2018, 17:20
Hello,
i try to parse a nested Variant_Array
the node contains an array with 10 elements
node->Value->Value->Variant_Array[10]
inside this Variant_Array i have another Variant_Array
node->Value->Value->Variant_Array[1]->Variant_Array[7]
i try to parse a nested Variant_Array
the node contains an array with 10 elements
node->Value->Value->Variant_Array[10]
inside this Variant_Array i have another Variant_Array
node->Value->Value->Variant_Array[1]->Variant_Array[7]
Code: Select all
static OpcUa_Void SampleSubscription_DataChange_CB(UaClient_Subscription *a_pSubscription,
OpcUa_Int32 a_noOfMonitoredItems,
OpcUa_MonitoredItemNotification *a_pMonitoredItems,
OpcUa_Int32 a_noOfDiagnosticInfos,
OpcUa_DiagnosticInfo *a_pDiagnosticInfos)
{
int i = a_pMonitoredItems[i].Value.Value.Value.Matrix.NoOfDimensions; //10
for(int j=0;j<i;j++){
//how to access the Array/Matrix Items ?
}
}