Nov-04-2017, 12:08 PM
My project is an experiment which will determine the best channel for the currently connected WIFI. Could you suggest any good libraries that will help me do that?
(Nov-04-2017, 12:37 PM)wavic Wrote: [ -> ]You are not saying anything about what OS you are using.
And I don't understand "currently connected WIFI". If you are connected to a wifi network the connection is on a certain channel already. If you want to determine on which channel to set your wifi network, you have to scan for others networks and see which channels they are using and go away from these them. To avoid the interference.
import subprocess command = "netsh wlan show networks mode=bssid".split() output = subprocess.check_output(command).decode('ascii') # or you can pass the command hardcoded: ['netsh', 'wlan0', 'show', 'networks', 'mode=bssid'] for line in output.split('\n'): if 'SSID' in line: print(line, end="") elif 'Channel' in line: print(line, '\n')For example... Since I do not use Windows at all, I can't try it.