Search in sources :

Example 1 with SessionDiagnosticsVariableTypeNode

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

the class SessionDiagnosticsObjectTypeNode method setSessionDiagnostics.

@Override
public void setSessionDiagnostics(SessionDiagnosticsDataType sessionDiagnostics) throws UaException {
    SessionDiagnosticsVariableTypeNode node = getSessionDiagnosticsNode();
    ExtensionObject value = ExtensionObject.encode(client.getStaticSerializationContext(), sessionDiagnostics);
    node.setValue(new Variant(value));
}
Also used : Variant(org.eclipse.milo.opcua.stack.core.types.builtin.Variant) ExtensionObject(org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject) SessionDiagnosticsVariableTypeNode(org.eclipse.milo.opcua.sdk.client.model.nodes.variables.SessionDiagnosticsVariableTypeNode)

Aggregations

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