So far I am able to scan all the available wifi using QNetworkConfigurationManager::allConfigurations(), but the QNetworkConfiguration data for each of them does not have the wifi signal strength. Can you point me into how to get this data? Thanks!
You'll want to look for the universal WiFi symbol in the upper right-hand corner of your device to gauge your current signal strength. Generally, this indicator appears as four to five curved bars stacked on top of each other- the more bars that are filled in, the stronger your connection.
iWifi is your ultimate network diagnostic tool, you can quickly test your internet speed, detect networked devices and view all kinds of network information, and there is also an analysis tool to visualize the nearby Wi-Fi signal.
You could use QProcess and run command line commands to scan for wifi networks. Use regular expressions to parse the command line output which contains all details of the wifi network.
If you are using linux then the command is "iwlist scan"
I am not sure you even can do this on normal desktop anyway(i mean just using Qt). Qt just dont have common interface with device to get such things. I am not sure what OS you are using, but the best hit for you is linking with OS and getting info from it or talking to device directly via driver. Both methods are difficult, especially because you need documentations, and moreover:
whatever you decide to do, you can use standard OS features to complete the goal. For example in windows you can use WlanGetAvailableNetworkList()
. As far as I remember it will will provide something called IRSSI
which is direct signal strength indicator :)
enjoy :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With