summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorFrank Meerkoetter <frank.meerkoetter@basyskom.com>2015-09-24 11:51:16 +0200
committerFrank Meerkoetter <frank.meerkoetter@basyskom.com>2015-10-21 07:21:21 +0000
commitd3a33bd1d0e8675a26831027b3144e5adf1df64c (patch)
tree31e648fe2240258933747e1ab215b31001350348 /config.tests
parentcbb846f4e250b7f2d2220a1030c8d5b4b50709f5 (diff)
Initial import of the QtOpcUa module
This patch set contains the basic framework, a backend plugin for the FreeOPCUA stack, initial documentation, tests and two examples. The code is based on initial work by: Jannis Völker <jannis.voelker@basyskom.com> Additional work by: Steffen Imhof <steffen.imhof@basyskom.com> Sumedha Widyadharma <sumedha.widyadharma@basyskom.com> Frank Meerkötter <frank.meerkoetter@basyskom.com> Change-Id: Ia27c67ba5e68bab4485ab14c4bf5f480d815e63e Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/freeopcua/freeopcua.pro9
-rw-r--r--config.tests/freeopcua/main.cpp52
2 files changed, 61 insertions, 0 deletions
diff --git a/config.tests/freeopcua/freeopcua.pro b/config.tests/freeopcua/freeopcua.pro
new file mode 100644
index 0000000..0085e43
--- /dev/null
+++ b/config.tests/freeopcua/freeopcua.pro
@@ -0,0 +1,9 @@
+TEMPLATE = app
+
+CONFIG += c++11
+
+unix {
+ CONFIG += link_pkgconfig
+ PKGCONFIG += libopcuacore libopcuaclient libopcuaprotocol libopcuaserver
+}
+SOURCES += main.cpp
diff --git a/config.tests/freeopcua/main.cpp b/config.tests/freeopcua/main.cpp
new file mode 100644
index 0000000..a7008fb
--- /dev/null
+++ b/config.tests/freeopcua/main.cpp
@@ -0,0 +1,52 @@
+/****************************************************************************
+**
+** Copyright (C) 2015 basysKom GmbH, opensource@basyskom.com
+** Contact: http://www.qt.io/licensing/
+**
+** This file is part of the QtOpcUa module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL3$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see http://www.qt.io/terms-conditions. For further
+** information use the contact form at http://www.qt.io/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 3 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPLv3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 3 requirements
+** will be met: https://www.gnu.org/licenses/lgpl.html.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 2.0 or later as published by the Free
+** Software Foundation and appearing in the file LICENSE.GPL included in
+** the packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 2.0 requirements will be
+** met: http://www.gnu.org/licenses/gpl-2.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include <opc/ua/node.h>
+#include <opc/ua/client/client.h>
+#include <opc/ua/server/server.h>
+#include <opc/ua/protocol/variant.h>
+#include <opc/ua/services/method.h>
+
+int main()
+{
+ OpcUa::UaServer server(false);
+ server.Start();
+
+ OpcUa::UaClient client(false);
+ client.Connect("opc.tcp://dummy:4711");
+
+ return 0;
+}