ASNeG / OpcUaStack

Open Source OPC UA Application Server and OPC UA Client/Server C++ Libraries
https://asneg.github.io/projects/opcuastack
Apache License 2.0
119 stars 41 forks source link
client communication cpp iot opc-ua opcua sdk server

OpcUaStack

.. image:: http://jenkins.asneg.de:8080/job/OpcUaStack/job/master/badge/icon :target: http://jenkins.asneg.de:8080/job/OpcUaStack/job/master/ .. image:: https://img.shields.io/github/downloads/ASNeG/OpcUaStack/total.svg?style=social :alt: Github All Releases :target: https://github.com/ASNeG/OpcUaStack

About

ASNeG OPC UA Stack is an open source framework for development and distribution of OPC UA client\server applications. It provides SDK to write your applications in C++ and an infrastructure to run and distribute them.

The stack contains the following parts:

All parts of the stack are cross-platform and support Linux and Windows operation systems.

Features

In the development stage:

The information about the coverage of OPC UA specification you can find here <https://opcuastack.readthedocs.io/en/latest/1_getting_started/overview.html#opc-ua-specification-coverage>_

Installing

See here <https://opcuastack.readthedocs.io/en/latest/1_getting_started/installation.html>_.

Usage

In order to create a user application OPC UA Stack provides a project builder:

::

$ OpcUaProjectBuilder3 MyProject ProjectDescription 9012

The builder creates a template of OPC UA application project in directory MyProject. The template is ready to be compiled and installed. Below there is an example for local installation (DEB installation is also possible):

::

$ cd MyPorject $ sh build.sh local

The user application is installed in directory $HOME/.ASNeG or C:\ASNeG by default. And you can run it by using OPC UA Server:

On Linux

::

$ export PATH=$PATH:$HOME/.ASNeG/usr/bin $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.ASNeG/usr/lib/ $ OpcUaServer3 $HOME/.ASNeG/etc/OpcUaStack/MyProject/OpcUaServer.xml

On Windows

::

$ set PATH=%PATH%;C:\ASNeG\usr\lib\ $ set PATH=%PATH%;C:\ASNeG\usr\bin\ $ OpcUaServer3 CONSOLE C:\ASNeG\etc\OpcUaStack\MyProject\OpcUaServer.xml

The server reads the setting from file OpcUaServer.xml and runs the user application. Now the application is available via OPC UA protocol on port 9012.

For more information about how to write your own OPC UA client server application see example and ASNeG-Demo.

References

.. _example: https://opcuastack.readthedocs.io/en/latest/1_getting_started/hello_world.html .. _Documentation: http://opcuastack.rtfd.io/ .. _ASNeG Home Page: https://asneg.github.io .. _OPC UA Specifications: https://opcfoundation.org/developer-tools/specifications-unified-architecture .. _ASNeG-Demo: https://github.com/ASNeG/ASNeG-Demo