Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Several instance QModbusTcpClient interfere with each other.

    General and Desktop
    2
    2
    41
    Loading More Posts
    • 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.
    • B
      big.Mike last edited by

      Hello,
      currently I'm using the class QModbusTcpClient (as Modbus master).
      I want to connect to several Modbus devices (clients) with diff IP addresses. Its working fine if I connect with one Modbus device.
      But as soon as I create the second instance of the class, both classes start to crash and interfere with each other. I tried to split them on different Thread and use them in one Thread , nothing helps. Several days of searching have yielded no results.
      Please help me find the right solution, I am stuck.

      1 Reply Last reply Reply Quote 0
      • Christian Ehrlicher
        Christian Ehrlicher Lifetime Qt Champion last edited by

        You should post a minimal, compilable example so we can see what you're doing.

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post