WOLFRAM SYSTEM MODELER

ExampleServer

The included example server

Wolfram Language

In[1]:=
SystemModel["OPCUA.Documentation.ExampleServer"]
Out[1]:=

Information

The OPCUA Library comes with an OPC UA server that contains nodes of all types supported by the library, and this server is used by the examples throughout the library. The server executable ExampleServer is located in a platform-specific subfolder of the Resource/Library folder:

  • Windows: win64
  • macOS: aarch64-darwin or darwin64
  • Linux: linux64

By default, the server is started on port 16664, allows anonymous connection and uses unencrypted communication. Some examples require two servers (the other on port 16665). There are two utility scripts included for starting these two servers, StartExampleServers.bat for Windows and StartExampleServers for macOS and Linux.

Some examples, like AuthenticationAndEncryption, require a server wtih access control and secure communication. That can be enabled with the following switches to the ExampleServer:

  • -ac: Enables access control; clients must authenticate as user username1 with the password password1.
  • -cert: Enables secure communication, and any client that wants to connect must use security mode Sign or SignAndEncrypt.