Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved Wifi connection on Raspberry pi

    Mobile and Embedded
    4
    6
    1509
    Loading More Posts
    • 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.
    • GilbertoAGJ
      GilbertoAGJ last edited by

      Hi guys,
      I'm making a code I need to connect my raspbeeey pi on wifi with QT. I'm using QNetworkConfigurationManager Class trying to scan for wifi signals but it's not working.
      the QNetworkConfigurationManager::allConfigurations() shows only two results: both are ethernet bearerType.
      one of them has the name eth0 and the other wlan0.
      QNetworkConfigurationManager::allConfigurations() should give me all possible connecions but isn't what is happening.
      Can someone help me ?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        wlan0 is your WiFi network device so technically you have all the interfaces of your device.

        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 Reply Quote 1
        • GilbertoAGJ
          GilbertoAGJ last edited by

          Thanks, but the bearer type of wlan0 is Ethernet. Shouldn't be BearerWLAN?
          How can I peform a wifi scan ?

          Qt Creator 3.2.1 based on 5.3.2.
          Using jessie lite with Pixel GUI

          1 Reply Last reply Reply Quote 0
          • Jerwinprabu
            Jerwinprabu last edited by

            I need more information because I am using same version. SSH connection (Remote connection) working ? Initial setup completed ?

            1 Reply Last reply Reply Quote 0
            • GilbertoAGJ
              GilbertoAGJ last edited by

              SSH working, initial setup completed. I'm actually using VNC to use QT Creator installed on Raspberry.
              I've solved this problem using Qprocess and executing terminal commmands. Now I just need to know how to connect to a wifi signal.

              jsulm 1 Reply Last reply Reply Quote 0
              • jsulm
                jsulm Lifetime Qt Champion @GilbertoAGJ last edited by

                @GilbertoAGJ Not sure what you mean with "wifi signal", but can't you use http://doc.qt.io/qt-5.8/qnetworkconfigurationmanager.html#onlineStateChanged signal to get a notification if online status of your device changes?

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

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post