I am currently interested in getting the Received Signal Strength Indicator (RSSI) of a specific Wifi network with a Python script.
My script is inspired from viewtopic.php?t=85601#p604902 where iwlist scan is used.
I have noticed that it takes around 1 second to parse the RSSI value and I was wondering if there is no way to do it faster? Actually I'm doing this for a university project and I wanted to know what are the limitations so that I can provide a more in depth explanation.
Thank you very much for your help
PS: I measured the execution time of the two lines of code below using time.time().
Code: Select all
proc = subprocess.Popen(["sudo", "iwlist", "wlan0", "scan", "essid", "dd-wrt"],stdout=subprocess.PIPE, universal_newlines=True) out, err = proc.communicate()