Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. MQTT client for QT
QtWS25 Last Chance

MQTT client for QT

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
mqttandroid
8 Posts 3 Posters 5.7k Views
  • 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.
  • FerniF Offline
    FerniF Offline
    Ferni
    wrote on last edited by
    #1

    Hi guys!
    I'm currently working with this MQTT client for qt (https://github.com/emqtt/qmqtt) but I have some problems. First I had an error due to the old version of qt and adding #include "QString" in qmqtt_routedmessage.h it's solved. Now I can build it and run it for Desktop but when I try to run it in my android device just doesn't work.
    This is the first error I receive:

    E/dalvikvm( 4873): dlopen("/data/app-lib/org.qtproject.example.qmqtt_example-1/libqmqtt_example.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libqmqtt.so" needed by "libqmqtt_example.so"; caused by load_library(linker.cpp:745): library "libqmqtt.so" not found
    The funny thing is that I can build the project for my android target but the problem comes when I try to run it.

    What am I doing wrong? Has anyone create a "Hello world" with MQTT for android? Btw I use API 17.

    Many thanks,
    Fernando

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK, you need to add your dependencies to the list of things to deploy. See here for more information.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        MLGDN
        wrote on last edited by
        #3

        I also want to use the qmqtt to achieve message push, but now I have a big problem. As it uses signals and slots to transmit data, how to invoke it in android server.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Android server ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            Android server ?

            M Offline
            M Offline
            MLGDN
            wrote on last edited by
            #5

            @SGaist

            If I want to be able to accept the notification when the application is not started,i think i should use the android to create a Background server , and to keep long connection with my server proxy, was i wrong?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Do you mean a background service ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              M 1 Reply Last reply
              0
              • SGaistS SGaist

                Do you mean a background service ?

                M Offline
                M Offline
                MLGDN
                wrote on last edited by
                #7

                @SGaist

                yes

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  IIRC, background services with Qt are part of 5.7

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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