From cdcece03ffe7147c830ce19696969c5748620c3a Mon Sep 17 00:00:00 2001 From: Jannis Voelker Date: Wed, 8 Aug 2018 14:05:20 +0200 Subject: Mention username and password handling in the QOpcUaClient docs Change-Id: I621c90619bf1fdf84a9b66734c3c0e6251c7ca3a Reviewed-by: Frank Meerkoetter --- src/opcua/client/qopcuaclient.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) -- cgit v1.2.3