.. _object_OpcUaClient: :index:`OpcUaClient` -------------------- Description *********** The OpcUaClient object is a container object for all OPC UA related objects. It is required to directly instantiate objects from the `Qt OPC UA QML module `_. Alternatively these objects can be used as properties within any InCore object. :**› Inherits**: :ref:`Object ` Overview ******** Properties ++++++++++ .. hlist:: :columns: 1 * :ref:`objects ` * :ref:`Object.objectId ` * :ref:`Object.parent ` Methods +++++++ .. hlist:: :columns: 1 * :ref:`fullNodePath() ` * :ref:`Object.deserializeProperties() ` * :ref:`Object.fromJson() ` * :ref:`Object.serializeProperties() ` * :ref:`Object.toJson() ` Signals +++++++ .. hlist:: :columns: 1 * :ref:`objectsDataChanged() ` * :ref:`Object.completed() ` Properties ********** .. _property_OpcUaClient_objects: .. _signal_OpcUaClient_objectsChanged: .. index:: single: objects objects +++++++ This property holds a list of OPC UA related objects, such as :ref:`OpcUaClientConnection `. :**› Type**: :ref:`List `\ :**› Signal**: objectsChanged() :**› Attributes**: Readonly Methods ******* .. _method_OpcUaClient_fullNodePath: .. index:: single: fullNodePath fullNodePath(:ref:`OpcUaNodeIdType ` nodeId) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ This method returns the full node path, i.e. namespace + identifier of the given node ID. This method was introduced in InCore 2.6. :**› Returns**: String Signals ******* .. _signal_OpcUaClient_objectsDataChanged: .. index:: single: objectsDataChanged objectsDataChanged(SignedInteger index) +++++++++++++++++++++++++++++++++++++++ This signal is emitted whenever the :ref:`List.dataChanged() ` signal is emitted, i.e. the item at ``index`` in the :ref:`objects ` list itself emitted the dataChanged() signal. .. _example_OpcUaClient: Example ******* .. code-block:: qml import InCore.Foundation 2.5 import InCore.OpcUa 2.5 Application { OpcUaClient { OpcUaClientConnection { // ... } OpcUaClientNodeId { identifier: "s=Machine" ns: "Example Namespace" id: machineNodeId } OpcUaClientValueNode { nodeId: OpcUaClientRelativeNodeId { startNode: machineNodeId path: [ OpcUaClientRelativeNodePath { ns: "Example Namespace"; browseName: "Example Value" } ] } onValueChanged: console.log("Example value", value) } } }