WriteItem QML Type
Specifies an item to be written to the server. More...
Import Statement: | import QtOpcUa |
Since: | QtOpcUa 5.13 |
Status: | Deprecated since 6.9 |
This type is deprecated since QtOpcUa 6.9. We strongly advise against using it in new code.
Properties
- attribute : Constants.NodeAttribute
- indexRange : string
- ns : variant
- serverTimestamp : datetime
- sourceTimestamp : datetime
- statusCode : OpcUaStatus
- value : variant
- valueType : variant
Detailed Description
This type is used to specify items to be written to the server using the function Connection::writeNodeAttributes.
Property Documentation
attribute : Constants.NodeAttribute
Determines the attribute of the node to be written.
indexRange : string
Determines the index range of the attribute to be written. If not needed, leave this property empty.
ns : variant
Determines the namespace of the node to be written. The namespace can be given by name or index. If this property is given, any namespace in the node id will be ignored.
serverTimestamp : datetime
Sets the server timestamp for the value to be written. If the server timestamp is invalid, it is ignored by the client and not sent to the server. If the server doesn't support writing timestamps, the write operation for this item will fail.
sourceTimestamp : datetime
Sets the source timestamp for the value to write. If the source timestamp is invalid, it is ignored by the client and not sent to the server. If the server doesn't support writing timestamps, the write operation for this item will fail.
statusCode : OpcUaStatus
Sets the status code for the value to write. If no status code is set, no status code is sent to the server.
value : variant
Actual data that is requested to be written.
valueType : variant
If given, the type information will be used in converting the value to a SDK specific data type.
© 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.