diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-23 17:35:34 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-23 17:35:34 +0100 |
| commit | 4ac860baa81f30e3e1fc9aaa42a3f0bb0537543a (patch) | |
| tree | 3ba02ef1943b0a6fcba49d8066b28c629f2a47a9 /src/OpcUaMonitoredNode.h | |
| parent | dea81e8c330d75eaaa96e7f1915a9824ca23b15d (diff) | |
| download | BobinkQtOpcUa-4ac860baa81f30e3e1fc9aaa42a3f0bb0537543a.tar.gz BobinkQtOpcUa-4ac860baa81f30e3e1fc9aaa42a3f0bb0537543a.zip | |
Add writeValueAtRange for index-range array writes
Diffstat (limited to 'src/OpcUaMonitoredNode.h')
| -rw-r--r-- | src/OpcUaMonitoredNode.h | 13 |
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 |
