WriteItem QML Type

Specifies an item to be written to the server. 更多...

import 语句: import QtOpcUa
Since: QtOpcUa 5.13

特性

详细描述

This type is used to specify items to be written to the server using the function Connection::writeNodeAttributes .

特性文档编制

属性 : 常量 . 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.