IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Node QML Type

Represents a node on a server.

This type was introduced in QtOpcUa 5.12.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Node QML Type

  • Import Statement: import QtOpcUa

  • Since:: QtOpcUa 5.12

  • Inherited By:: MethodNode and ValueNode

Detailed Description

 
Sélectionnez
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

See also status, 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

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

A string representation of the current status code.

See Also

See also status, Status

[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

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

[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

See also errorMessage, 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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+