WriteItem QML Type
指定要写入服务器的项目。更多
Import Statement: | import QtOpcUa |
Since: | QtOpcUa 5.13 |
Status: | Deprecated since 6.9 |
自 QtOpcUa 6.9 起,该类型已被弃用。我们强烈建议不要在新代码中使用它。
属性
- attribute : Constants.NodeAttribute
- indexRange : string
- ns : variant
- serverTimestamp : datetime
- sourceTimestamp : datetime
- statusCode : OpcUaStatus
- value : variant
- valueType : variant
详细说明
该类型用于使用函数Connection::writeNodeAttributes 指定要写入服务器的项目。
属性文档
attribute : Constants.NodeAttribute |
确定要写入的节点属性。
indexRange : string |
确定要写入的属性的索引范围。如果不需要,请将此属性留空。
ns : variant |
确定要写入的节点的命名空间。命名空间可以通过名称或索引给出。如果给定了该属性,节点 id 中的任何命名空间都将被忽略。
serverTimestamp : datetime |
为要写入的值设置服务器时间戳。如果服务器时间戳无效,客户端将忽略该时间戳,也不会将其发送到服务器。如果服务器不支持写入时间戳,该项目的写入操作将失败。
sourceTimestamp : datetime |
为要写入的值设置源时间戳。如果源时间戳无效,客户端将忽略该值,也不会将其发送到服务器。如果服务器不支持写入时间戳,该项目的写入操作将失败。
statusCode : OpcUaStatus |
为要写入的值设置状态代码。如果未设置状态代码,则不会向服务器发送状态代码。
value : variant |
请求写入的实际数据。
valueType : variant |
如果给定,类型信息将用于将值转换为 SDK 特定的数据类型。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.