Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-86360

Successfully executed OPC UA method closes client connection

    XMLWordPrintable

    Details

    • 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:
      Linux/X11

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            fmeerkoetter Frank Meerkötter
            Reporter:
            vivaladav Davide Coppola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes