Coder Social home page Coder Social logo

protocol-opcua-c's Introduction

OPC-UA Protocol Stack (C)

This provides opcua protocol stack library

Prerequisites

  • You must install basic prerequisites for build

    $ sudo apt-get install build-essential
  • cmake

  • SCons

  • Python

    • Version : 2.7.X
  • pip

    $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    $ python get-pip.py

How to build

$ ./build.sh
$ ./build_arm.sh  : for arm architecture
Build Options
  • --build_mode = [release/debug]

    If you want to build to debug mode, then please make this option [debug/DEBUG]. Default value is [release].

Binaries
  • opcua protocol stack library : build/libopcua-adapter.so
Note
  • Build script will download open62541 library automatically from github.
  • After download, it will be built for 'single file distribution' mode which combines all header files into a single header file(open62541.h) and all source files into a single source file(open62541.c).
  • After building, all library files and folders except open62541.h and open62541.c will be deleted.
  • Final location of open62541.h and open62541.c: extlibs/open62541/open62541/
  • These two files will be directly included and built along with OPC-UA protocol stack.

How to run server and client examples

  1. Go to 'example/out' folder.

  2. Export 'libopcua-adapter.so' library path for executables:

    Run command : export LD_LIBRARY_PATH=../../build

  3. Run the server and client :

     1. server : `./server`
    
     2. client : `./client`
    

How to run browseNext in client example

  1. 'start' : Connection establishment.

  2. 'set_max_ref' : Set the maximum references per node to be returned. [ex 10]

  3. 'browse' : Performs browse with '10' as maximum references per node.

... <browse callback may come with 1 or more continuation points. Callback in sample stores all of them in a list> ...

  1. 'browse_next' : Perform browse next with stroed continuation points

... <browse callback may come with 1 or more continuation points again. Callback in sample stores all of them in a list> ...

  1. go to Step 4. Step 4 can be continued until continuation point list becomes empty.

DNS Setup for OPC UA endpoint url.

$vi /etc/hosts'

[IP Address] [Host Name]
# e.g) 100.101.102.103 linux-abcd

OPC-UA protocol stack library for Windows

protocol-opcua-c's People

Contributors

jpwhitemn avatar jwagantall avatar myeonggijeong avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.