Wifi connection on Raspberry pi
-
wrote on 27 Apr 2017, 20:51 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 ? -
Hi and welcome to devnet,
wlan0 is your WiFi network device so technically you have all the interfaces of your device.
-
wrote on 27 Apr 2017, 21:22 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 -
wrote on 29 Apr 2017, 05:38 last edited by
I need more information because I am using same version. SSH connection (Remote connection) working ? Initial setup completed ?
-
wrote on 30 Apr 2017, 23:41 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. -
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.@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?
1/6