When we connect the Raspberry Pi to a WiFi network, we can enter a command in the console to see a list of available networks:
iwlist wlan0 scan
What should a python script look like that will do the same?
Simple error extra character added to end of address
Thanks for the tip.pcmanbob wrote: ↑Wed Oct 09, 2019 7:41 pmSimple error extra character added to end of address
Try : https://linuxhandbook.com/execute-shell-command-python
Code: Select all
import os myCmd = 'iwlist wlan0 scan | grep "ESSID"' os.system (myCmd)