Search in sources :

Example 1 with SubscriptionDiagnosticsArrayTypeNode

use of org.eclipse.milo.opcua.sdk.client.model.nodes.variables.SubscriptionDiagnosticsArrayTypeNode in project milo by eclipse.

the class SessionDiagnosticsObjectTypeNode method setSubscriptionDiagnosticsArray.

@Override
public void setSubscriptionDiagnosticsArray(SubscriptionDiagnosticsDataType[] subscriptionDiagnosticsArray) throws UaException {
    SubscriptionDiagnosticsArrayTypeNode node = getSubscriptionDiagnosticsArrayNode();
    ExtensionObject[] encoded = ExtensionObject.encodeArray(client.getStaticSerializationContext(), subscriptionDiagnosticsArray);
    node.setValue(new Variant(encoded));
}
Also used : Variant(org.eclipse.milo.opcua.stack.core.types.builtin.Variant) ExtensionObject(org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject) SubscriptionDiagnosticsArrayTypeNode(org.eclipse.milo.opcua.sdk.client.model.nodes.variables.SubscriptionDiagnosticsArrayTypeNode)

Example 2 with SubscriptionDiagnosticsArrayTypeNode

use of org.eclipse.milo.opcua.sdk.client.model.nodes.variables.SubscriptionDiagnosticsArrayTypeNode in project milo by eclipse.

the class ServerDiagnosticsTypeNode method setSubscriptionDiagnosticsArray.

@Override
public void setSubscriptionDiagnosticsArray(SubscriptionDiagnosticsDataType[] subscriptionDiagnosticsArray) throws UaException {
    SubscriptionDiagnosticsArrayTypeNode node = getSubscriptionDiagnosticsArrayNode();
    ExtensionObject[] encoded = ExtensionObject.encodeArray(client.getStaticSerializationContext(), subscriptionDiagnosticsArray);
    node.setValue(new Variant(encoded));
}
Also used : Variant(org.eclipse.milo.opcua.stack.core.types.builtin.Variant) ExtensionObject(org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject) SubscriptionDiagnosticsArrayTypeNode(org.eclipse.milo.opcua.sdk.client.model.nodes.variables.SubscriptionDiagnosticsArrayTypeNode)

Aggregations

SubscriptionDiagnosticsArrayTypeNode (org.eclipse.milo.opcua.sdk.client.model.nodes.variables.SubscriptionDiagnosticsArrayTypeNode)2 ExtensionObject (org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject)2 Variant (org.eclipse.milo.opcua.stack.core.types.builtin.Variant)2