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¶
def
__init__()
def
connectTimeout()
def
__ne__()
def
requestTimeout()
def
sessionTimeout()
def
swap()
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:
other –
QOpcUaConnectionSettings
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.
See also
- __ne__(rhs)¶
- Parameters:
rhs –
QOpcUaConnectionSettings
- Return type:
bool
Returns
true
iflhs
does not contain the same connection settings asrhs
; otherwise returnsfalse
.- requestTimeout()¶
- Return type:
std::chrono::milliseconds
Returns the request timeout.
This value determines how long a synchronous service call will wait for a reply.
See also
- secureChannelLifeTime()¶
- Return type:
std::chrono::milliseconds
Returns the secure channel lifetime.
See also
- sessionLocaleIds()¶
- Return type:
list of strings
Returns the session locale ids.
See also
- sessionTimeout()¶
- Return type:
std::chrono::milliseconds
Returns the requested session timeout.
See also
- setConnectTimeout(timeout)¶
- Parameters:
timeout –
std::chrono::milliseconds
Sets
timeout
as the new connect timeout.See also
- setRequestTimeout(timeout)¶
- Parameters:
timeout –
std::chrono::milliseconds
Sets
timeout
as the new request timeout.See also
- setSecureChannelLifeTime(lifeTime)¶
- Parameters:
lifeTime –
std::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
See also
- 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
See also
- setSessionTimeout(timeout)¶
- Parameters:
timeout –
std::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
- swap(other)¶
- Parameters:
other –
QOpcUaConnectionSettings
Swaps connection settings object
other
with this connection settings object. This operation is very fast and never fails.