diff options
Diffstat (limited to 'src/opcua/client/qopcuaclient.cpp')
-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 77c7342..741d591 100644 --- a/src/opcua/client/qopcuaclient.cpp +++ b/src/opcua/client/qopcuaclient.cpp @@ -233,6 +233,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) |