* add missing ref for build in VSO hosted VS 2017 build * project to just build Dlls * target multiple frameworks * switch to net46/netstandard1.3 * fix projects to allow for netcoreapp 2.0 build * fix networking for .Net Core 2.0: SendAsync and ReceiveAsync now frequently return synchronously even if successful. These cases had not been properly handled yet, previous versions never hit these codepaths. * fix travis build / nugets * change travis build target * fix Kestrel https option for netstandard 2.0 tested with Ua Expert against standard and ref server * Handle special case correctly, when zero bytes are received its ok, or BadTimeout will occur * simplify connect, reduce DiscoverEndpoint calls
OPC Foundation UA .Net Standard Library Aggregation Client and Server
Introduction
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.
How to build and run the OPC UA Aggregation Server
Prerequisite: Build and run the aggregated servers
- 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
F7to build the solution and all samples. - Hit
Ctrl-F5and 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-F5and execute the UA Sample Client sample.
Build and run the OPC UA Aggregation Server
Pick the Windows or the Console OPC UA Aggregation Server.
Build and run the Windows 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
F5to build and execute the sample.
Build and run the Console OPC UA Aggregation Server on Windows, Linux and iOS
This section describes how to run the ConsoleAggregationServer.
Please follow instructions in this article to setup the dotnet command line environment for your platform.
Prerequisites
- Once the
dotnetcommand 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.
Start the server
- 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.
Build and run the OPC UA Aggregation 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
F5to build and execute the sample. - Press
Connectto 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.