summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/5.13' into devQt Forward Merge Bot2019-07-221-1/+1
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I3ec18abe3fb453eab23eb007290744eefb6fba6c
| * Merge remote-tracking branch 'origin/5.12' into 5.13Liang Qi2019-07-031-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/opcua/client/qopcuatype.cpp src/opcua/client/qopcualocalizedtext.cpp src/opcua/doc/src/qtopcua.qdoc src/opcua/opcua.pro Change-Id: I7a016cdee7c3bbae175589dd030e0ba634ab0ca8
| | * Fix build with -no-guiLiang Qi2019-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTQAINFRA-2576 Change-Id: I34b3c66f53ef03d83906b8df7236b0f50e34fe71 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* | | Merge remote-tracking branch 'origin/5.13' into devQt Forward Merge Bot2019-04-303-36/+39
|\| | | | | | | | | | | Change-Id: Icd11d093e7fe88cc261155fe28d75fca537aef11
| * | Doc: Fix QDoc warnings and errorsRainer Keller2019-04-233-36/+39
| | | | | | | | | | | | | | | Change-Id: I2a53d2726b17ec356b39f94022fe0bdccbc6b25f Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* | | Merge remote-tracking branch 'origin/5.13' into devLiang Qi2019-04-0813-31/+93
|\| | | | | | | | | | | | | | | | | | | | Conflicts: examples/opcua/waterpump/simulationserver/simulationserver.pro Change-Id: I5da85c88d291d0688c2733bbfdfde388550976be
| * | Fix API inconsistencyRainer Keller2019-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | 'securityPolicies' is without URI but 'securityPolicyUri' contains it. Change-Id: I4309c519682de4dd8acad154721b07c67337ff62 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
| * | Rename API to be more consistent with QT APIRainer Keller2019-03-253-17/+17
| | | | | | | | | | | | | | | Change-Id: I6e55cd8d51b0058e051d757d4eead6024c88caf0 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
| * | examples: Update opcuaviewer certificatesv5.13.0-beta1Rainer Keller2019-03-076-0/+40
| | | | | | | | | | | | | | | | | | | | | This sets all trusts to make the examples usable with the new server. Change-Id: Ia14d1a805a43c288cbd5f8cf0612addcc06d514f Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
| * | Merge remote-tracking branch 'origin/5.12' into 5.13Qt Forward Merge Bot2019-03-021-2/+0
| |\| | | | | | | | | | Change-Id: Id765fe763d6de948dc550b0106f0a0c4b76684ec
| | * example: remove open62541 dependency from examplePeter Rustler2019-02-261-2/+0
| | | | | | | | | | | | | | | Change-Id: I21c9ff87512e16b3d87b2039e8807c65fdbb62d2 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
| * | qml: Use findServers and endpoints for connectionRainer Keller2019-02-262-1/+22
| | | | | | | | | | | | | | | Change-Id: I3532f4d8eaa9686b018bd040c26f19cdf0209ef9 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
| * | example: Buildable simulation server from source tree and installerRainer Keller2019-02-251-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The simulation server need to be buildable from the example package from the installer as well. Change-Id: I06d303d9d9cfce084e7721721f9be931ac566359 Fixes: QTBUG-72495 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | | Merge remote-tracking branch 'origin/5.13' into devLiang Qi2019-02-251-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: examples/opcua/opcuaviewer/mainwindow.cpp src/imports/opcua/opcua_plugin.cpp src/imports/opcua/opcuaconnection.h Change-Id: I1e5b4be0390ee62ae462b0d2f2ec6fa402958fa4
| * | Add API for querying security features of a backendRainer Keller2019-02-201-1/+1
| | | | | | | | | | | | | | | | | | Change-Id: Idcc0ad4ce28b486cb176d23dd41568d676940593 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
| * | opcuaviewer: Fix connect with the open62541 backendJannis Voelker2019-02-201-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The open62541 backend does not yet support certificate authentication and aborts the connection attempt if it is requested. Change-Id: Ia078156c7a17e58f72ee934ee7b0ec935f33cb22 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com> (cherry picked from commit a5eab4b543d5df1f1e8b7d27fedcd898339024e9)
* | | opcuaviewer: Fix connect with the open62541 backendJannis Voelker2019-02-051-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | The open62541 backend does not yet support certificate authentication and aborts the connection attempt if it is requested. Change-Id: Ia078156c7a17e58f72ee934ee7b0ec935f33cb22 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | | example: Add instruction to build simulation serverRainer Keller2019-02-052-0/+10
| | | | | | | | | | | | | | | | | | | | | There was no hint that needs to be done beforehand. Change-Id: I4301ea9c446c061d125a0c1fec0188afa42a541b Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | | example: Remove gui lib from simulation serverRainer Keller2019-02-051-0/+1
| | | | | | | | | | | | | | | Change-Id: I898648aeb8554fff99eee87c96ec4354e13c4b36 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | | example: Use display name UI textsRainer Keller2019-02-054-0/+8
|/ / | | | | | | | | Change-Id: Ia3d4d979740e380f0ef65876700412201cacb7c6 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | Move classes out of namespaceRainer Keller2019-01-216-42/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | All classes are moved out of the QOpcUa namespace and separated into separate files. Historically we had namespaced classes and classed with a prefix, which led to confusion. To unify the API, this change removes the namespace as the rest of Qt isn't typically namespaced. [ChangeLog][QOpcUa] All classes from the QOpcUA namespace are renamed: QOpcUa::Typename to QOpcUaQTypename Change-Id: I981645e0a9b4d769ad73ab4b9a9268019904b378 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | Remove connect with QUrlJannis Voelker2019-01-143-4/+26
| | | | | | | | | | | | | | | | [ChangeLog][QOpcUaClient] The connectToEndpoint(QUrl) method is replaced by connectToEndpoint(QEndpointDescription) to enable secure connections. Change-Id: I3d42699fae6d29b0adbd556ae4ba14914236c115 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* | opcuaviewer: Add certificate dialog and trust functionalityGerhard Gappmeier2019-01-116-19/+314
| | | | | | | | | | Change-Id: Ibab6725d5047512dc8db7feb2d46f41a75054eb0 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | opcuaviewer: List all discovery endpoint URLs of each serverJannis Voelker2019-01-111-2/+2
| | | | | | | | | | | | | | | | | | If only the first endpoint URL is used, a server with https support may only be listed as https. Change-Id: I22c6fe9eabeb9aed956a0e934d974092198249f3 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com> Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* | opcuaviewer: Wait for the namespaces arrayJannis Voelker2019-01-112-2/+16
| | | | | | | | | | | | | | | | | | If a server uses the namespace URI for local results in the browse response, the namespaces array must be available before the browse results can be used. Change-Id: I4cd7ca76f9b06089f2b3361ad75eb8077063c60c Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | opcuaviewer: Implement connectError callback and add error dialogGerhard Gappmeier2019-01-112-0/+44
| | | | | | | | | | Change-Id: I20c34cf47db2f0ea5873616436e045fb6c093448 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* | opcuaviewer: Implement discovery using findServersGerhard Gappmeier2019-01-115-16/+99
| | | | | | | | | | | | Change-Id: I9bcd53ea2aeb719e8b10d4c69afd5cc1e45e5e79 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com> Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* | opcuaviewer: Use PKI configuration and application identityGerhard Gappmeier2019-01-112-0/+72
| | | | | | | | | | Change-Id: I18569214e066683f2d511641fef12b2c96e4f8cd Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* | opcuaviewer: Implement endpoint selection using UA DiscoveryGerhard Gappmeier2019-01-112-21/+79
| | | | | | | | | | | | | | | | This updates the GUI and implements requestEndpoints call. This allows the selection of secure endpoints. Change-Id: I6e3d13309d11b8da2e0e8d07e3a042973184a922 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* | Merge remote-tracking branch 'origin/5.12' into devLiang Qi2019-01-083-1/+9
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: src/opcua/configure.json src/plugins/opcua/uacpp/quacppbackend.cpp src/plugins/opcua/uacpp/quacppbackend.h src/plugins/opcua/uacpp/quacppvalueconverter.cpp src/plugins/opcua/uacpp/quacppvalueconverter.h Change-Id: I0cdc58982e7f4531847801a540ad9b52b1fde7a1
| * Fix simulation server path for the waterpump example on macOSJannis Voelker2019-01-072-0/+4
| | | | | | | | | | Change-Id: Ia7078d2c55fb719d6b7a5627269b67cabe106503 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
| * open62541: Include sources as 3rd party codeRainer Keller2019-01-071-1/+5
| | | | | | | | | | | | | | | | | | | | Version v0.3.0 [ChangeLog][Third-Party Code] Added version 0.3.0 of open62541 to src/3rdparty. The code is available under Mozilla Public License 2.0. Change-Id: I06d303d9d9cfce084e7721721f9be931ac566359 Task-number: QTBUG-72495 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | Merge remote-tracking branch 'origin/5.12' into devQt Forward Merge Bot2018-11-171-3/+3
|\| | | | | | | Change-Id: Ie4098cce28d2968c3674ffb6642805fb0b852208
| * Fix typov5.12.0-rc2v5.12.0-rc1v5.12.0Rainer Keller2018-11-131-3/+3
| | | | | | | | | | Change-Id: I4f2b532a81e000285ce7c9ad8861bd3e5449bafa Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* | qml: Update imports 5.12 -> 5.13Rainer Keller2018-10-165-5/+5
|/ | | | | Change-Id: I55f1cb97b6d59d523be2c7d3493668b52ee6a287 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Rename QOpcUa::NodeIds::NS0 to QOpcUa::NodeIds::Namespace0Jannis Voelker2018-09-172-4/+4
| | | | | | | | The abbreviation "ns0" is also removed from the converter functions in qopcuatype.cpp. Change-Id: Ic8e9aed4891f9e550f4e00105182744f1eb9b2e3 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* qml: Expose method node object nodeRainer Keller2018-09-171-8/+8
| | | | | | | | | For easy access to the properties of the function to call the target node is exposed as node object instead of a string. Change-Id: I3e5ed1b0f94576221a5eeaca70cd14dbc765377c Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* simulationserver: Set proper display namesRainer Keller2018-09-051-13/+13
| | | | | Change-Id: I21a228b29245de78dc8638be6c12737690641f57 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix localesRainer Keller2018-08-291-5/+5
| | | | | | | Conform to OPC UA specification part 3, 8.4 Change-Id: Id0893ee98bbd84fcace67951b51f817717276766 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Emit attributeUpdated whenever the attribute cache is updatedJannis Voelker2018-08-141-5/+5
| | | | | | | | | | | | | | | This allows to handle all reads, writes and data changes with just a single slot. The dataChangeOccurred signal is added to QOpcUaNode and is only emitted after a data change notification has been received. This is a change in behavior compared to 5.11 where the attributeUpdated() signal was only emitted after a data change and three signals were required to fully keep track of changes to the attribute cache. Change-Id: I3d7d33b7b0eb48b044d64178d448bedc4f3a756d Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Use objects instead of folders in the simulation serverJannis Voelker2018-08-142-25/+37
| | | | | | | | | The server for the water pump example uses folders to organize the variable and method nodes of the machine. Using HasComponent references is more common. Change-Id: I3839fc258df8f5e2b9a00cad069f13fc50807edb Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* opcuaviewer: Improve value displayJannis Voelker2018-08-092-21/+44
| | | | | | | | This patch adds more detailed output for values and support for the ExpandedNodeId, StatusCode, Argument and ExtensionObject types. Change-Id: Ia56dd0dd4ed384444c614fed31a1791b5d1f1df1 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* Add generated header and source files with known node idsJannis Voelker2018-08-096-5939/+8
| | | | | | | | | | | | | | The NodeIds.csv file distributed by the OPC Foundation contains the node ids of the default nodes in namespace 0. This patch adds a generated header file with all node ids from NodeIds.csv and a generated .cpp file with documentation. The generator used to generate the files has been added in the tools directory. Change-Id: Iec8d58ca71fa5d29e691b064ec8bacf0abcd94d2 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Add QML APIRainer Keller2018-08-0716-1/+1194
| | | | | Change-Id: I56fe77b473c9422870c71f055e9ebf818f70e0b5 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* doc: Small fixes in example documentationRainer Keller2018-07-312-9/+13
| | | | | | Change-Id: I620a0f77b7751219f54dedd56c9c1b4dfeeea116 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Example: Move waterpump example to different folderRainer Keller2018-07-3117-15/+12
| | | | | | | | There will be another waterpump example soon. Change-Id: I27268d35e5ade5ac335065af47b2a15da9e5cb66 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Prefer the C++11 nullptr to NULLFrank Meerkoetter2018-07-311-3/+3
| | | | | Change-Id: I7c8847002eaeec7bcfce3e9e2edcd9329b5bdb00 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* Add generic browse methodJannis Voelker2018-07-251-4/+4
| | | | | | | | This patch adds a generic browse method which allows the user to configure the inclusion of sub types and the browse direction. Change-Id: Iebcddcb37c076fb25bc198311808403f367619c7 Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
* Get rid of open62541 compile warningsRainer Keller2018-07-031-1/+1
| | | | | | | | This header disables the warnings via pragma. Change-Id: Iaa60bbe6523dca0f82bf509e26949f9d853ca191 Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Merge remote-tracking branch 'origin/5.11' into devLiang Qi2018-07-032-6/+22
|\ | | | | | | | | | | | | Conflicts: examples/opcua/opcuaviewer/treeitem.cpp Change-Id: I33dd1d6125dc07847be73696c6dbb8924f529804