OpcUaClientMethodNode¶
Description¶
Please refer to the Qt OPC UA MethodNode QML type documentation.
Properties¶
inputArguments¶
Please refer to the Qt OPC UA MethodNode QML type documentation.
› Attributes: | Readonly |
---|
objectNodeId¶
Please refer to the Qt OPC UA MethodNode QML type documentation.
› Attributes: | Writable |
---|
outputArguments¶
Please refer to the Qt OPC UA MethodNode QML type documentation.
› Attributes: | Readonly |
---|
resultStatus¶
Please refer to the Qt OPC UA MethodNode QML type documentation.
› Attributes: | Readonly |
---|
Methods¶
callMethod()¶
Please refer to the Qt OPC UA MethodNode QML type documentation.
Example¶
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()
}
}