PySide6.QtOpcUa.QOpcUaConnectionSettings

class QOpcUaConnectionSettings

连接到服务器的常见参数。更多

在版本6.6中添加。

概要

方法

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

此类存储常见的连接参数,如会话超时、安全通道生命周期和localeIds。

此类的信息目前仅由open62541后端使用。

__init__()

构建一个连接设置对象。

__init__(other)
Parameters:

其他QOpcUaConnectionSettings

使用other的值构建连接设置对象。

__ne__(rhs)
Parameters:

rhsQOpcUaConnectionSettings

Return type:

布尔

如果 lhs 不包含与 rhs 相同的连接设置,则返回 true;否则返回 false

sessionLocaleIds()
Return type:

字符串列表

返回会话的区域设置ID。

另请参阅

setSessionLocaleIds()

setSessionLocaleIds(localeIds)
Parameters:

localeIds – 字符串列表

localeIds设置为新的区域设置ID列表。此设置目前不受open62541后端支持。

详情请参阅 https://reference.opcfoundation.org/v105/Core/docs/Part4/5.6.3/#Table17

另请参阅

sessionLocaleIds()

swap(other)
Parameters:

其他QOpcUaConnectionSettings

将此连接设置对象与other连接设置对象交换。此操作非常快速且永远不会失败。