This OPC aggregation server is by default configured to aggregate the UA Sample Server and UA Sample Client. Once the Aggregation Server is started, the aggregated OPC UA servers can be viewed in the namespace of the Aggregation Server with the Aggregation Client or any other OPC UA client.
They are built with the Quickstart application template (OPC Client/Server) and use the OPC Foundation UA .NET Standard Library SDK. Therefore they support the opc.tcp and http transports.
There is a .Net 4.6 based aggregation server with UI and a console version of the aggregation server which runs on any supported OS for .NET Standard Library.
- Open the solution UA-NetStandard.sln with VisualStudio.
- Choose the project UA Sample Server in the Solution Explorer and set it with a right click as
Startup Project
. - Hit
F7
to build the solution and all samples. - Hit
Ctrl-F5
and execute the UA Sample Server sample. - Choose the project UA Sample Client in the Solution Explorer and set it with a right click as
Startup Project
. - Hit
Ctrl-F5
and execute the UA Sample Client sample.
Pick the Windows or the Console OPC UA Aggregation Server.
- Open the solution UA Aggregation.sln with VisualStudio.
- Choose the project Aggregation Server in the Solution Explorer and set it with a right click as
Startup Project
. - Hit
F5
to build and execute the sample.
Build and run the Console OPC UA Aggregation Server on Windows, Linux and iOS (including Docker Container support!)
This section describes how to run the ConsoleAggregationServer.
Please follow instructions in this article to setup the dotnet command line environment for your platform.
- Once the
dotnet
command is available, navigate to the root folder in your local copy of the repository and executedotnet restore
. This command calls into NuGet to restore the tree of dependencies.
- Open a command prompt.
- Now navigate to the folder SampleApplications/Workshop/Reference/ConsoleReferenceServer.
- To run the server sample type
dotnet run
.
The server is now running, connecting to the aggregated servers and waiting for the connection of a OPC UA client.
- Open the solution UA Aggregation.sln with VisualStudio.
- Choose the project Aggregation Client in the Solution Explorer and set it with a right click as
Startup Project
. - Hit
F5
to build and execute the sample. - Press
Connect
to connect to the Aggregation Server. - Browse the aggregation server and access the UA Sample Client or the UA Sample Server in the namespace of the Aggregation Server.