WriteItem QML Type
서버에 기록할 항목을 지정합니다. 자세히...
Import Statement: | import QtOpcUa |
Since: | QtOpcUa 5.13 |
속성
- attribute : Constants.NodeAttribute
- indexRange : string
- ns : variant
- serverTimestamp : datetime
- sourceTimestamp : datetime
- statusCode : OpcUaStatus
- value : variant
- valueType : variant
상세 설명
이 유형은 Connection::writeNodeAttributes 함수를 사용하여 서버에 기록할 항목을 지정하는 데 사용됩니다.
속성 문서
attribute : Constants.NodeAttribute |
기록할 노드의 속성을 결정합니다.
indexRange : string |
기록할 속성의 인덱스 범위를 결정합니다. 필요하지 않은 경우 이 속성을 비워둡니다.
ns : variant |
기록할 노드의 네임스페이스를 결정합니다. 네임스페이스는 이름 또는 인덱스로 지정할 수 있습니다. 이 속성을 지정하면 노드 ID의 네임스페이스는 무시됩니다.
serverTimestamp : datetime |
기록할 값의 서버 타임스탬프를 설정합니다. 서버 타임스탬프가 유효하지 않으면 클라이언트에서 무시되고 서버로 전송되지 않습니다. 서버가 타임스탬프 쓰기를 지원하지 않는 경우 이 항목에 대한 쓰기 작업은 실패합니다.
sourceTimestamp : datetime |
쓸 값의 소스 타임스탬프를 설정합니다. 소스 타임스탬프가 유효하지 않으면 클라이언트에서 무시되고 서버로 전송되지 않습니다. 서버가 타임스탬프 쓰기를 지원하지 않는 경우 이 항목에 대한 쓰기 작업이 실패합니다.
statusCode : OpcUaStatus |
기록할 값의 상태 코드를 설정합니다. 상태 코드를 설정하지 않으면 서버에 상태 코드가 전송되지 않습니다.
value : variant |
쓰기를 요청하는 실제 데이터입니다.
valueType : variant |
유형 정보가 제공되면 값을 SDK 특정 데이터 유형으로 변환하는 데 사용됩니다.
© 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.