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. What APIs I shoul use to be able to manipulate network interfaces, start-stop wifi/hotspot
Qt 6.11 is out! See what's new in the release blog

What APIs I shoul use to be able to manipulate network interfaces, start-stop wifi/hotspot

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 2.6k 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.
  • X Offline
    X Offline
    xchg.ca
    wrote on last edited by
    #1

    Hi guys. I want to create network management app
    I want to be able to access network configuration for each interface available, read and set IPs/Gateways/DNS on interfaces for static configuration or keep them dynamic, stop/start particular interface.

    Also I would like to be able to list WIFI networks, connect to particular network with all necessary WIFI configurations.
    As well as create mobile hotspot with necessary for hotspot configuration and monitor states of the hotspot and wifi connections.

    I was reading into QtNetwork 5.2, but looks like it capabilities is limited as far as network management, I don't see ability to start/stop interfaces, set IP/DNS etc...

    Ans actually I see nothing related specifically to WIFI, unless WIFI covered in some other module/plugin.

    Please advise.
    Thank you.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      I don't have experience with management of network interfaces through Qt but your thread caught my attention and I had a look at the article about "Qt 5 Bearer Management":http://qt-project.org/doc/qt-5/bearer-management.html. Are you familiar with this article and can it help you achieve your goals?

      http://anavi.org/

      1 Reply Last reply
      0
      • S Offline
        S Offline
        s.frings74
        wrote on last edited by
        #3

        Checkout the API decoumentation from Google: http://developer.android.com/reference/android/net/wifi/WifiManager.html
        There interface is straight forward, so it should be easy to call it via JNI. However there is not much to configure. I assume that the Hotspot stuff is not part of Googles API. You might ask the phone manufacturer for the API.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          s.frings74
          wrote on last edited by
          #4

          The Bearer Management classes are useless on Android. They support only Windows, Linux and Mac OS (see the compatibility box at the page bottom).

          1 Reply Last reply
          0
          • X Offline
            X Offline
            xchg.ca
            wrote on last edited by
            #5

            Thank you guys for input, as I suspected I would have to use system APIs in order to access WIFI/HS on my platform.

            Also looks like for all other interfaces Bearer Management is read only, I don't see anyways of changing properties of any interfaces.

            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