eta_nexus.nodes.opcua_node module

class eta_nexus.nodes.opcua_node.OpcuaNode(name: str, url: str, protocol: str, *args: Any, **kwargs: Any)[source]

Bases: Node

Node for the OPC UA protocol.

opc_id: str | None

Node ID of the OPC UA Node.

opc_path_str: str | None

Path to the OPC UA node.

opc_ns: int | None

Namespace of the OPC UA Node.

opc_id_type: str

Type of the OPC UA Node ID Specification.

opc_name: str

Name of the OPC UA Node.

evolve(**kwargs: Any) Self[source]

Returns a new node instance by copying the current node and changing only specified keyword arguments.

This allows for seamless node instantiation with only a few changes.

Adjusted attributes handling according to OpcuaNode instantiation logic as in ‘__attrs_post_init__’.

Parameters:

kwargs – Keyword arguments to change.

Returns:

New instance of the node.