openmv/scripts/examples/Arduino/Portenta-H7/40-WiFi/scan.py
2021-02-13 21:24:33 +02:00

17 lines
302 B
Python

# Scan Example
#
# This example shows how to scan for networks with the WiFi shield.
import time, network
wlan = network.WLAN(network.STA_IF)
wlan.deinit()
wlan.active(True)
while (True):
scan_result = wlan.scan()
for ap in scan_result:
print(ap)
print()
time.sleep_ms(1000)