summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/opcua/client/qopcuaclient.cpp11
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)