Node QML Type
Represents a node on a server. More...
Import Statement: | import QtOpcUa |
Since: | QtOpcUa 5.12 |
Inherited By: | MethodNode and ValueNode |
Properties
- Status : enumeration
- browseName : string
- connection : Connection
- description : LocalizedText
- displayName : LocalizedText
- errorMessage : string
- eventFilter : EventFilter
- nodeClass : QOpcUa::NodeClass
- nodeId : NodeId
- readyToUse : bool
- status : Status
Methods
- Date getServerTimestamp(Constants::NodeAttribute attribute)
- Date getSourceTimestamp(QOpcUa::NodeAttribute attribute)
Detailed Description
import QtOpcUa as QtOpcUa QtOpcUa.Node { nodeId : QtOpcUa.NodeId { identifier: "s=Example.Method" ns: "Example Namespace" } connection: myConnection }
Property Documentation
Status : enumeration |
Status of a node.
Constant | Description |
---|---|
Node.Status.Valid | Node is ready for use |
Node.Status.InvalidNodeId | Node id is invalid |
Node.Status.NoConnection | Not connected to a server |
Node.Status.InvalidNodeType | Node type on the server does not match the QML type |
Node.Status.InvalidClient | Invalid connection client |
Node.Status.FailedToResolveNode | Failed to resolve node |
Node.Status.InvalidObjectNode | The object node is invalid or its type does not match the expected type |
Node.Status.FailedToReadAttributes | Failed to read attributes |
Node.Status.FailedToSetupMonitoring | Failed to setup monitoring |
See also status and errorMessage.
browseName : string |
The browse name of the node. In case the information is not available an empty string is returned.
connection : Connection |
The connection to be used for node instances. The node will automatically be accessible when the associated connection has established a connection to a server.
If this property is not set, the default connection will be used, if any.
See also Connection and Connection::defaultConnection.
description : LocalizedText |
The description of the node. In case the information is not available a default constructed LocalizedText is returned.
displayName : LocalizedText |
The localized text of the node. In case the information is not available a default constructed LocalizedText is returned.
[read-only] errorMessage : string |
[since 5.13] eventFilter : EventFilter |
An event filter allows monitoring events on the server for certain conditions.
This property was introduced in Qt 5.13.
See also EventFilter.
[read-only] nodeClass : QOpcUa::NodeClass |
The node class of the node. In case the information is not available QtOpcUa.Constants.NodeClass.Undefined
is returned.
nodeId : NodeId |
ID of the node on the server to be used. This can be an absolute node ID or a relative node ID.
See also NodeId and RelativeNodeId.
[read-only] readyToUse : bool |
This property returns whether the node is ready to use. This happens once after a successful connection to a server was established and the node was successfully set up.
[read-only] status : Status |
Current status of the node. The node is only usable when the status is Valid
. In any other case it indicates an error.
See also errorMessage and Status.
Method Documentation
Date getServerTimestamp(Constants::NodeAttribute attribute) |
Returns the server timestamp of the given attribute.
Date getSourceTimestamp(QOpcUa::NodeAttribute attribute) |
Returns the source timestamp of the given attribute.