Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1007 Bytes

README.md

File metadata and controls

39 lines (32 loc) · 1007 Bytes

Getting started with the open62541 library

Arranging prerequisites

$ sudo apt-get install git build-essential gcc pkg-config cmake python python-six

Cloning open62541

$ git clone https://github.com/open62541/open62541.git
$ cd open62541
$ git submodule init
$ git submodule update

IMG01

Building open62541

$ mkdir build
$ cd build
$ cmake -DUA_ENABLE_AMALGAMATION=ON -DUA_ENABLE_METHODCALLS=ON -DUA_NAMESPACE_ZERO=FULL -DUA_ENABLE_SUBSCRIPTIONS=ON ..
$ make
$ sudo make install

IMG02

Building and running OPCUA examples using single-file release open62541.h

$ cd examples
$ gcc -std=c99 -I../build/ ../build/open62541.c tutorial_server_variable.c -o server
$ ./server

IMG03

Open a Prosys OPC UA client to view/edit server nodes

Address: opc.tcp://<IP address of server / localhost>:4840 IMG04