aboutsummaryrefslogtreecommitdiffstats
path: root/src/OpcUaMonitoredNode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/OpcUaMonitoredNode.h')
-rw-r--r--src/OpcUaMonitoredNode.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/OpcUaMonitoredNode.h b/src/OpcUaMonitoredNode.h
index 2e86b2c..2ecffb7 100644
--- a/src/OpcUaMonitoredNode.h
+++ b/src/OpcUaMonitoredNode.h
@@ -88,6 +88,18 @@ public:
*/
Q_INVOKABLE void writeValue (const QVariant &value);
+ /**
+ * @brief Write a value to a specific index range of an array node.
+ *
+ * @a indexRange uses OPC UA syntax: "0" for first element,
+ * "0:3" for elements 0–3, "0,1" for 2D indexing.
+ * For multi-element writes, @a value can be a comma-separated
+ * string or a QVariantList.
+ * Result is reported asynchronously via writeCompleted().
+ */
+ Q_INVOKABLE void writeValueAtRange (const QVariant &value,
+ const QString &indexRange);
+
void classBegin () override;
void componentComplete () override;
@@ -129,6 +141,7 @@ private:
bool m_writable = false;
QVariant m_value;
OpcUaNodeInfo m_info;
+ bool m_pendingRangeWrite = false;
};
#endif // OPCUAMONITOREDNODE_H