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

Successfully executed OPC UA method closes client connection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.1
    • 5.15.0
    • OpcUA
    • None
    • Ubuntu Linux 16.04
      gcc 5
      Qt 5.15.0
    • 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

        For Gerrit Dashboard: QTBUG-86360
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes