eta_nexus.servers.loaders.opcua_server_loader module

eta_nexus.servers.loaders.opcua_server_loader.load_opcua_servers_from_config(config_path: str, port_override: int | None = None) list[OpcuaServer][source]

Load and instantiate OPC UA servers from a configuration file.

Supported config shape (normalized internally):
{
“system”: [
{

“name”: “CHP”, “servers”: {

“glt”: {“url”: “127.0.0.1:4840”, “protocol”: “opcua”, “usr”: “…”, “pwd”: “…”}

}, “nodes”: [

{“name”: “power_elek”, “server”: “glt”,

“opc_id”: “ns=6;s=…”, “dtype”: “float”},

]

}

]

}

Normalization rules:
  • Endpoint: prefer url/endpoint (with or without opc.tcp://); otherwise compose from ip + port.

  • If only url is provided, it is parsed into ip and port.

  • NodeId must be provided as opc_id.

  • DType aliases are mapped case-insensitively via _dtype_converter.

Returns:

List[OpcuaServer] with nodes created and attached.