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: | Object |
---|
Properties¶
objects¶
This property holds a list of OPC UA related objects, such as OpcUaClientConnection.
› Type: | List<Object> |
---|---|
› Signal: | objectsChanged() |
› Attributes: | Readonly |
Methods¶
fullNodePath(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¶
objectsDataChanged(SignedInteger index)¶
This signal is emitted whenever the List.dataChanged() signal is emitted, i.e. the item at index
in the objects list itself emitted the dataChanged() signal.
Example¶
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)
}
}
}