open62541/1.3.9

open62541 is an open source and free implementation of OPC UA (OPC Unified Architecture) written in the common subset of the C99 and C++98 languages. The library is usable with all major compilers and provides the necessary tools to implement dedicated OPC UA clients and servers, or to integrate OPC UA-based communication into existing applications. open62541 library is platform independent. All platform-specific functionality is implemented via exchangeable plugins. Plugin implementations are provided for the major operating systems.
Recipe info
2024-01-07

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
open62541/1.3.9

Using open62541

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
open62541/1.3.9
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("open62541/1.3.9")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): open62541
  • CMake target name(s): open62541::open62541
  • pkg-config file name(s): open62541.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(open62541 REQUIRED)
# ...
target_link_libraries(YOUR_TARGET open62541::open62541)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the open62541 homepage listed above:

#include "aa_tree.h"
#include "accesscontrol.h"
#include "accesscontrol_default.h"
#include "log.h"
#include "log_stdout.h"
#include "log_syslog.h"
#include "ms_stdint.h"
#include "network.h"
#include "nodestore.h"
#include "nodestore_default.h"
#include "open62541/architecture_definitions.h"
#include "open62541/architecture_functions.h"
#include "open62541/client.h"
#include "open62541/client_config_default.h"
#include "open62541/client_highlevel.h"
#include "open62541/client_highlevel_async.h"
#include "open62541/client_subscriptions.h"
#include "open62541/common.h"
#include "open62541/config.h"
#include "open62541/network_tcp.h"
#include "open62541/nodeids.h"
#include "open62541/plugin/accesscontrol.h"
#include "open62541/plugin/accesscontrol_default.h"
#include "open62541/plugin/log.h"
#include "open62541/plugin/log_stdout.h"
#include "open62541/plugin/log_syslog.h"
#include "open62541/plugin/network.h"
#include "open62541/plugin/nodestore.h"
#include "open62541/plugin/nodestore_default.h"
#include "open62541/plugin/pki.h"
#include "open62541/plugin/pki_default.h"
#include "open62541/plugin/pubsub.h"
#include "open62541/plugin/securitypolicy.h"
#include "open62541/plugin/securitypolicy_default.h"
#include "open62541/posix/ua_architecture.h"
#include "open62541/server.h"
#include "open62541/server_config_default.h"
#include "open62541/server_pubsub.h"
#include "open62541/statuscodes.h"
#include "open62541/types.h"
#include "open62541/types_generated.h"
#include "open62541/types_generated_handling.h"
#include "open62541/util.h"
#include "pki.h"
#include "pki_default.h"
#include "pubsub.h"
#include "securitypolicy.h"
#include "securitypolicy_default.h"
#include "ua_architecture.h"
#include "ziptree.h"