Please refer to the Qt OPC UA MethodNode QML type documentation.
single: inputArguments
Please refer to the Qt OPC UA MethodNode QML type documentation.
- › Attributes
Readonly
single: objectNodeId
Please refer to the Qt OPC UA MethodNode QML type documentation.
- › Attributes
Writable
single: outputArguments
Please refer to the Qt OPC UA MethodNode QML type documentation.
- › Attributes
Readonly
single: resultStatus
Please refer to the Qt OPC UA MethodNode QML type documentation.
- › Attributes
Readonly
single: callMethod
Please refer to the Qt OPC UA MethodNode QML type documentation.
import InCore.Foundation 2.5
import InCore.OpcUa 2.5
Application {
OpcUaClient {
OpcUaClientConnection {
// ...
}
OpcUaClientMethodNode {
id: pingMethod
nodeId: OpcUaClientNodeId { identifier: "s=Machine.Ping"; ns: "Example Namespace" }
objectNodeId: OpcUaClientNodeId { identifier: "s=Machine"; ns: "Example Namespace" }
inputArguments: [
OpcUaClientMethodArgument {
value: 123.456
type: OpcUaType.Double
},
OpcUaClientMethodArgument {
value: "Hello world"
type: OpcUaType.String
}
]
onOutputArgumentsChanged: console.log("Method returned", JSON.stringify(outputArguments))
}
}
Timer {
onTriggered: pingMethod.callMethod()
}
}