diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2018-08-08 14:05:20 +0200 |
---|---|---|
committer | Jannis Völker <jannis.voelker@basyskom.com> | 2018-08-08 12:57:08 +0000 |
commit | cdcece03ffe7147c830ce19696969c5748620c3a (patch) | |
tree | c2de7aaf8efbef2baf187a4b7dc769af9eec0700 | |
parent | 5fca85cf9e5c6512968ad1b907e5543f237073f9 (diff) |
Mention username and password handling in the QOpcUaClient docs
Change-Id: I621c90619bf1fdf84a9b66734c3c0e6251c7ca3a
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r-- | src/opcua/client/qopcuaclient.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/opcua/client/qopcuaclient.cpp b/src/opcua/client/qopcuaclient.cpp index 86056e1..a27f18d 100644 --- a/src/opcua/client/qopcuaclient.cpp +++ b/src/opcua/client/qopcuaclient.cpp @@ -164,6 +164,17 @@ QOpcUaClient::~QOpcUaClient() /*! Connects to the OPC UA endpoint given in \a url. + + If the endpoint requires username and password, they must be included in \a url. + + \code + QUrl url("opc.tcp://localhost:4840"); + url.setUserName("user"); + url.setPassword("password"); + + m_client->connectToEndpoint(url); + \endcode + \sa disconnectFromEndpoint() */ void QOpcUaClient::connectToEndpoint(const QUrl &url) |