PicoWireless: network scan example
Basic example to scan SSID networks and list them.
This commit is contained in:
parent
71058bca1e
commit
1bb61b2c52
|
@ -0,0 +1,15 @@
|
|||
import picowireless
|
||||
import time
|
||||
|
||||
picowireless.init()
|
||||
|
||||
picowireless.start_scan_networks()
|
||||
|
||||
while True:
|
||||
networks = picowireless.get_scan_networks()
|
||||
print("Found {} network(s)...".format(networks))
|
||||
for network in range(networks):
|
||||
ssid = picowireless.get_ssid_networks(network)
|
||||
print("{}: {}".format(network, ssid))
|
||||
print("\n")
|
||||
time.sleep(10)
|
Loading…
Reference in New Issue