Details
Description
Using QOpcUaNode::callMethod() to execute a server method returns an error status and closes my client connection even if the method is successfully executed.
Result and status returned are:
result: QVariant(Invalid)
status: QOpcUa::BadConnectionClosed
This is using the Open62541 backend.
This is how I am calling a method (sorry, but no formatting works fine in this editor):
const QString methodId("ns=2;s=::ms:start_process");
const QVector<QOpcUa::TypedVariant> params = {
{val1, QOpcUa::Int32}, {val2, QOpcUa::Int32} };
mNodeMS->callMethod(methodId, params);
Attachments
For Gerrit Dashboard: QTBUG-86360 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
314470,13 | open62541: Use the async API for most service calls | dev | qt/qtopcua | Status: MERGED | +2 | 0 |