PySide6.QtOpcUa.QOpcUaConnectionSettings

class QOpcUaConnectionSettings

The common parameters for a connection to a server.

Details

This class stores common connection parameters like the session timeout, the secure channel lifetime and the localeIds.

The information from this class is currently only used by the open62541 backend.

Added in version 6.6.

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

__init__()

Constructs a connection settings object.

__init__(other)
Parameters:

otherQOpcUaConnectionSettings

Constructs a connection settings object with the values of other.

connectTimeout()
Return type:

std::chrono::milliseconds

Returns the connect timeout.

This value determines how long the connect will wait for a reply.

__ne__(rhs)
Parameters:

rhsQOpcUaConnectionSettings

Return type:

bool

Returns true if lhs does not contain the same connection settings as rhs; otherwise returns false.

requestTimeout()
Return type:

std::chrono::milliseconds

Returns the request timeout.

This value determines how long a synchronous service call will wait for a reply.

secureChannelLifeTime()
Return type:

std::chrono::milliseconds

Returns the secure channel lifetime.

sessionLocaleIds()
Return type:

list of strings

Returns the session locale ids.

sessionTimeout()
Return type:

std::chrono::milliseconds

Returns the requested session timeout.

setConnectTimeout(timeout)
Parameters:

timeoutstd::chrono::milliseconds

Sets timeout as the new connect timeout.

See also

connectTimeout()

setRequestTimeout(timeout)
Parameters:

timeoutstd::chrono::milliseconds

Sets timeout as the new request timeout.

See also

requestTimeout()

setSecureChannelLifeTime(lifeTime)
Parameters:

lifeTimestd::chrono::milliseconds

Sets lifeTime as the new secure channel lifetime.

For details, see https://reference.opcfoundation.org/v105/Core/docs/Part4/5.5.2/#Table11

setSessionLocaleIds(localeIds)
Parameters:

localeIds – list of strings

Sets localeIds as the new list of locale IDs. This setting is currently not supported by the open62541 backend.

For details, see https://reference.opcfoundation.org/v105/Core/docs/Part4/5.6.3/#Table17

setSessionTimeout(timeout)
Parameters:

timeoutstd::chrono::milliseconds

Sets timeout as the new requested session timeout.

For details, see https://reference.opcfoundation.org/v105/Core/docs/Part4/5.6.2/#Table15

See also

sessionTimeout()

swap(other)
Parameters:

otherQOpcUaConnectionSettings

Swaps connection settings object other with this connection settings object. This operation is very fast and never fails.