Node QML Type
서버의 노드를 나타냅니다. 자세히...
Import Statement: | import QtOpcUa |
Since: | QtOpcUa 5.12 |
Inherited By: | MethodNode and ValueNode |
속성
- Status : enumeration
- browseName : string
- connection : Connection
- description : LocalizedText
- displayName : LocalizedText
- errorMessage : string
- eventFilter : EventFilter
- nodeClass : QOpcUa::NodeClass
- nodeId : NodeId
- readyToUse : bool
- status : Status
방법
- Date getServerTimestamp(Constants::NodeAttribute attribute)
- Date getSourceTimestamp(QOpcUa::NodeAttribute attribute)
상세 설명
import QtOpcUa as QtOpcUa QtOpcUa.Node { nodeId : QtOpcUa.NodeId { identifier: "s=Example.Method" ns: "Example Namespace" } connection: myConnection }
속성 문서
Status : enumeration |
노드의 상태입니다.
Constant | 설명 |
---|---|
Node.Status.Valid | 노드를 사용할 준비가 되었습니다. |
Node.Status.InvalidNodeId | 노드 ID가 유효하지 않습니다. |
Node.Status.NoConnection | 서버에 연결되지 않았습니다. |
Node.Status.InvalidNodeType | 서버의 노드 유형이 QML 유형과 일치하지 않습니다. |
Node.Status.InvalidClient | 잘못된 연결 클라이언트 |
Node.Status.FailedToResolveNode | 노드 확인에 실패했습니다. |
Node.Status.InvalidObjectNode | 개체 노드가 유효하지 않거나 해당 유형이 예상 유형과 일치하지 않습니다. |
Node.Status.FailedToReadAttributes | 속성을 읽지 못함 |
Node.Status.FailedToSetupMonitoring | 모니터링을 설정하지 못했습니다. |
status 및 errorMessage 을참조하세요 .
browseName : string |
노드의 찾아보기 이름입니다. 정보를 사용할 수 없는 경우 빈 문자열이 반환됩니다.
connection : Connection |
노드 인스턴스에 사용할 연결입니다. 연결된 연결이 서버에 연결을 설정하면 노드에 자동으로 액세스할 수 있습니다.
이 속성을 설정하지 않으면 기본 연결이 있는 경우 기본 연결이 사용됩니다.
Connection 및 Connection::defaultConnection 을참조하세요 .
description : LocalizedText |
노드에 대한 설명입니다. 정보를 사용할 수 없는 경우 기본으로 구성된 LocalizedText 이 반환됩니다.
displayName : LocalizedText |
노드의 현지화된 텍스트입니다. 정보를 사용할 수 없는 경우 기본적으로 구성된 LocalizedText 이 반환됩니다.
eventFilter : EventFilter |
이벤트 필터를 사용하면 특정 조건에 대한 서버의 이벤트를 모니터링할 수 있습니다.
EventFilter도 참조 하세요.
nodeClass : QOpcUa::NodeClass |
노드의 노드 클래스입니다. 정보를 사용할 수 없는 경우 QtOpcUa.Constants.NodeClass.Undefined
이 반환됩니다.
nodeId : NodeId |
사용할 서버의 노드 ID입니다. 절대 노드 ID 또는 상대 노드 ID일 수 있습니다.
NodeId 및 RelativeNodeId 을참조하세요 .
readyToUse : bool |
이 속성은 노드를 사용할 준비가 되었는지 여부를 반환합니다. 서버에 대한 연결이 성공적으로 설정되고 노드가 성공적으로 설정된 후에 한 번 발생합니다.
status : Status |
노드의 현재 상태입니다. 상태가 Valid
인 경우에만 노드를 사용할 수 있습니다. 그 외의 경우에는 오류를 나타냅니다.
errorMessage 및 Status 을참조하세요 .
메서드 문서
Date getServerTimestamp(Constants::NodeAttribute attribute) |
주어진 attribute 의 서버 타임스탬프를 반환합니다.
Date getSourceTimestamp(QOpcUa::NodeAttribute attribute) |
주어진 attribute 의 소스 타임스탬프를 반환합니다.
© 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.