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

QtMqttClient is not connecting with Mosquitto Broker running different Docker container

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.11.0
    • Fix Version/s: None
    • Component/s: MQTT
    • Labels:
      None
    • Environment:
      Docker-CE version > 18 .

      docker-compose version 1.19

      QtMqtt 5.11.0

      Description

      I have written a simple QtMQttClient which I am running inside a container and I want to connect it to Mosquitto Broker running in a different container.

      QtMqttClient sends the request to connect but after some time stops with ClientError

      QMqttClient::TransportInvalid 256 The underlying transport caused an error. For example, the connection might have been interrupted unexpectedly.

      I created a docker-compose file where I am starting 2 more containers which have default eclipse paho MQTT client in it and they connect without any problem.

      Kindly see the attachment.

      It has docker-compose file.

      SimpleClient code.

      Info about other Eclipse Paho MQTT clients

       

        Attachments

        1. QtMqtt_Test.7z
          14 kB
        2. QtMqtt_Test.zip
          20 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            mkalinow Maurice Kalinowski
            Reporter:
            vinay.tiwari Vinay Tiwari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes