Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Several instance QModbusTcpClient interfere with each other.



  • 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.


  • Qt Champions 2019

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


Log in to reply