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. Connman Wifi Api
Qt 6.11 is out! See what's new in the release blog

Connman Wifi Api

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 4 Posters 4.4k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    Jignesh Patel
    wrote on last edited by
    #1

    Hi,
    I have development board installed debian and also Qt library.
    It has installed ConnMan network-manager.

    How can i control WiFi from QT?

    Thanks,
    Jignesh

    jsulmJ 1 Reply Last reply
    0
    • J Jignesh Patel

      Hi,
      I have development board installed debian and also Qt library.
      It has installed ConnMan network-manager.

      How can i control WiFi from QT?

      Thanks,
      Jignesh

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Jignesh-Patel As far as I know you can't. You can use WiFi using Qt networking classes, but you cannot control WiFi (switch it on/off, connect to a specific WiFi network,...).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • J Offline
        J Offline
        Jignesh Patel
        wrote on last edited by
        #3

        Thanks jsulm,

        OK,I can not control through QT API.
        I have successfully connect, disconnect and give pass key using command line on connman.
        But,How Can I use connMan manager command in QT directly to scan, connect and give passkey?

        jsulmJ 1 Reply Last reply
        0
        • J Jignesh Patel

          Thanks jsulm,

          OK,I can not control through QT API.
          I have successfully connect, disconnect and give pass key using command line on connman.
          But,How Can I use connMan manager command in QT directly to scan, connect and give passkey?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Jignesh-Patel You could start connman command line client from Qt (using QProcess) and pass parameters to it and read its output.
          Or you can check whether connman provides a library which can be used to do the same.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • E Offline
            E Offline
            Eligijus
            wrote on last edited by
            #5

            You can control WiFi from Qt with connman Qt bindings libconnman-qt but lack of documentation and examples makes it a tad bit harder :)
            If choose to go libconnman-qt path I could help you with the basics and maybe dig up some code snippets/examples I wrote.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              James A
              wrote on last edited by
              #6

              @jsulm
              Is there any example qt application available for connecting to protected WiFi network using libconnman-qt library ?

              jsulmJ 1 Reply Last reply
              0
              • J James A

                @jsulm
                Is there any example qt application available for connecting to protected WiFi network using libconnman-qt library ?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @James-A I don't know. The only example I see in the repository is https://git.sailfishos.org/mer-core/libconnman-qt/tree/master/examples/counters

                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