Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOpcUa: inspecting the cause of a connection error

QOpcUa: inspecting the cause of a connection error

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 143 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mark81
    wrote on last edited by Mark81
    #1

    I'm working on a project that connects 30+ machines via QOpcUa.
    It works fine but every few minutes I get a connection error:

    void MyOpcUa::clientError(QOpcUaClient::ClientError error)
    {
        qWarning() << "Client error changed" << error;
        _clientError = true;
    }
    

    when it happens I get:

    "Client error changed QOpcUaClient::ConnectionError

    After few seconds my application reconnects to the PLC successfully. This happen to all the machine (from different manufacturers) hence it's not related to a specific item.

    It happens every few minutes randomly among all the machines. Not all at the same time, though. And it happens also using the qtopcuaviewer that shows the same error.

    I'm afraid it can be a network issue, but I'm wondering if there is a more detailed info about this generic "connection error".

    Qt 6.4.0 on Ubuntu 22.04.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved