-
Type:
Bug
-
Status: Reported
-
Priority:
P2: Important
-
Resolution: Unresolved
-
Affects Version/s: 5.15.0
-
Fix Version/s: None
-
Component/s: OpcUA
-
Labels:None
-
Environment:Ubuntu Linux 16.04
gcc 5
Qt 5.15.0
-
Platform/s:
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);