mattiad
Posts: 2
Joined: Fri Jul 07, 2017 11:57 am

connect wifi by python

Fri Jul 07, 2017 12:13 pm

hi all !

i use raspberry pi3 with raspbian
someone was been to able to connect wifi by python ?
i tried to connect by python subprocess :

Code: Select all

os.popen("sudo iwconfig wlan0 essid my_ssid key s:pass"
but after this command, it disables my wifi interface (wlan0), so i have "no wifi interfaces found" in the raspbian top panel.
I also tried to use a module named "wifi" https://wifi.readthedocs.io/en/latest/
but i have same result so the disabling of wlan0 interface
any ideas ?

Return to “Python”