It's a example project that implements OPCUA LDS in node.js.
We have created a Java client that requests registered servers from LDS.
We have created several servers, in different languages, that register with LDS.
- Client: Java Client in Java
- LDS: Local Discovery Server in Node.js
- ServerNode: Server in Node.js
- ServerCs: Server in C#
- ServerC: Server in C
We also tried without success:
- ServerPython: python-opcua but Issue 1 Issue 2
- ServerMilo: Eclipse Milo
- For LDS and ServerNode: node-opcua
- For Client: UA-Java-Legacy
- For ServerCs: UA-.NETStandard, Dotnet
- For ServerC: open62541
-
LDS
> cd LDS
> npm install
> npm run dev
-
ServerNode
> cd ServerNode
> npm install
> npm run dev
-
ServerCs
> cd ServerCs\bin
> ServerCs.exe
Or
- Open ServerCs\ServerCs.sln on Visual Studio (Require .NET Framework 4.6.2 Developer Pack)
- You can edit LDS default port inside Server\ServerCs.cs
-
ServerC
On linux
> cd ServerC
> gcc -std=c99 -UA_ENABLE_DISCOVERY ServerC.c open62541.c -o ServerC
> ./ServerC
On Windows
> cd ServerC\Release
> ServerC.exe
Or
- Open ServerC\ServerC.sln on Visual Studio
- You can edit LDS default port inside ServerC\ServerC.c
-
Client
> cd ClientOPCUA_LDS
> java -jar ClientForLDS.jar
Or
- Import ClientOPCUA_LDS project on Eclipse (Eclipse -> Import -> Existing Projects into Workspace)
- Import UA-Java-Legacy stack into Workspace
- Right click on the project "ClientOPCUA_LDS" and choose Properties.
- Select Java Build Path -> Projects -> Add and select the stack project (opc-ua-stack)
Copy the LDS endpoint url inside Client for start scan.