fix
parent
5a4a4bf40d
commit
2e8dda654b
@ -0,0 +1,18 @@
|
|||||||
|
import pywifi
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
|
def scan_wifi():
|
||||||
|
wifi = pywifi.PyWiFi()
|
||||||
|
ifaces = wifi.interfaces()[0]
|
||||||
|
# ifaces.scan()
|
||||||
|
# time.sleep(1)
|
||||||
|
# results = ifaces.scan_results()
|
||||||
|
|
||||||
|
# for i in results:
|
||||||
|
# # print(f"SSID:{i.ssid}, signal scrength:{i.akm}")
|
||||||
|
# print(f"SSID:{i.ssid}")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
scan_wifi()
|
Loading…
Reference in New Issue