From 50c62c35463b62a3a7acebf9ebe22d44f1c6dca2 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Thu, 19 Feb 2026 12:29:05 +0100 Subject: Log attribute reads to debug console and replace raw C++ types with Qt equivalents Connect QOpcUaNode::attributeRead signal to new handler that logs read results (value or error code) to the debug console via BobinkClient::statusMessage. Add nameFromAttribute() helper. Replace const char* arrays with QLatin1StringView, bare string literals with QStringLiteral, uint with quint32, int with qint32. Rename statusLog to debugLog in Main.qml for consistency. --- demo/Main.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'demo') diff --git a/demo/Main.qml b/demo/Main.qml index ca22bb8..7b76fee 100644 --- a/demo/Main.qml +++ b/demo/Main.qml @@ -336,15 +336,15 @@ ApplicationWindow { function appendLog(msg) { let ts = new Date().toLocaleTimeString(Qt.locale(), "HH:mm:ss"); - statusLog.text += "[" + ts + "] " + msg + "\n"; - statusLog.cursorPosition = statusLog.text.length; + debugLog.text += "[" + ts + "] " + msg + "\n"; + debugLog.cursorPosition = debugLog.text.length; } ScrollView { anchors.fill: parent anchors.margins: 4 TextArea { - id: statusLog + id: debugLog readOnly: true color: "#cccccc" font.family: "monospace" -- cgit v1.2.3