use of org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject in project milo by eclipse.
the class SessionsDiagnosticsSummaryTypeNode method setSessionSecurityDiagnosticsArray.
@Override
public void setSessionSecurityDiagnosticsArray(SessionSecurityDiagnosticsDataType[] sessionSecurityDiagnosticsArray) throws UaException {
SessionSecurityDiagnosticsArrayTypeNode node = getSessionSecurityDiagnosticsArrayNode();
ExtensionObject[] encoded = ExtensionObject.encodeArray(client.getStaticSerializationContext(), sessionSecurityDiagnosticsArray);
node.setValue(new Variant(encoded));
}
use of org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject in project milo by eclipse.
the class CubeItemTypeNode method writeYAxisDefinitionAsync.
@Override
public CompletableFuture<StatusCode> writeYAxisDefinitionAsync(AxisInformation yAxisDefinition) {
ExtensionObject encoded = ExtensionObject.encode(client.getStaticSerializationContext(), yAxisDefinition);
DataValue value = DataValue.valueOnly(new Variant(encoded));
return getYAxisDefinitionNodeAsync().thenCompose(node -> node.writeAttributeAsync(AttributeId.Value, value));
}
use of org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject in project milo by eclipse.
the class CubeItemTypeNode method writeZAxisDefinitionAsync.
@Override
public CompletableFuture<StatusCode> writeZAxisDefinitionAsync(AxisInformation zAxisDefinition) {
ExtensionObject encoded = ExtensionObject.encode(client.getStaticSerializationContext(), zAxisDefinition);
DataValue value = DataValue.valueOnly(new Variant(encoded));
return getZAxisDefinitionNodeAsync().thenCompose(node -> node.writeAttributeAsync(AttributeId.Value, value));
}
use of org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject in project milo by eclipse.
the class ImageItemTypeNode method writeXAxisDefinitionAsync.
@Override
public CompletableFuture<StatusCode> writeXAxisDefinitionAsync(AxisInformation xAxisDefinition) {
ExtensionObject encoded = ExtensionObject.encode(client.getStaticSerializationContext(), xAxisDefinition);
DataValue value = DataValue.valueOnly(new Variant(encoded));
return getXAxisDefinitionNodeAsync().thenCompose(node -> node.writeAttributeAsync(AttributeId.Value, value));
}
use of org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject in project milo by eclipse.
the class MultiStateValueDiscreteTypeNode method writeEnumValuesAsync.
@Override
public CompletableFuture<StatusCode> writeEnumValuesAsync(EnumValueType[] enumValues) {
ExtensionObject[] encoded = ExtensionObject.encodeArray(client.getStaticSerializationContext(), enumValues);
DataValue value = DataValue.valueOnly(new Variant(encoded));
return getEnumValuesNodeAsync().thenCompose(node -> node.writeAttributeAsync(AttributeId.Value, value));
}
Aggregations