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

QtMqttClient is not connecting with Mosquitto Broker running different Docker container

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.11.0
    • MQTT
    • None
    • 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

            mkalinow Maurice Kalinowski
            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