The OPC UA SimpleAttributeOperand type. 更多...
| import 语句: |
import QtOpcUa
|
| Since: | QtOpcUa 5.13 |
| 状态: | Deprecated since 6.9 |
This type is deprecated since QtOpcUa 6.9. We strongly advise against using it in new code.
The SimpleAttributeOperand is specified in OPC UA 1.05 part 4, 7.7.4.5. It is used when a node attribute is required as operand.
For example, the following simple attribute operand represents the value of the "Severity" field of the base event type:
import QtOpcUa as QtOpcUa QtOpcUa.SimpleAttributeOperand { identifier: "Severity" ns: "http://opcfoundation.org/UA/" }
|
browsePath : list < OpcUaNodeId > |
Browse path to the node holding the attribute.
import QtOpcUa as QtOpcUa QtOpcUa.SimpleAttributeOperand { ... browsePath: [ QtOpcUa.NodeId { identifier: "Message" ns: "http://opcfoundation.org/UA/" } ... ] }
|
indexRange : string |
Index range string used to identify a single value or subset of the attribute's value.
import QtOpcUa as QtOpcUa QtOpcUa.SimpleAttributeOperand { ... indexRange: "0:2" }
|
nodeAttribute : 常量 . NodeAttribute |
Attribute of the node
browsePath
is pointing to. The default value is
Constants.NodeAttribute.Value
.
import QtOpcUa as QtOpcUa QtOpcUa.SimpleAttributeOperand { ... nodeAttribute: QtOpcUa.Constants.NodeAttribute.Value }
|
typeId : string |
Node id of the type definition node. The operand will be of the type or one of its subtypes. The default value is
"ns=0;i=2041"
.
import QtOpcUa as QtOpcUa QtOpcUa.SimpleAttributeOperand { ... typeId: "ns=0;i=2041" }