openmv/usr/examples/18-WIFI/scan.py
2016-03-28 23:19:09 +02:00

11 lines
241 B
Python

# Simple WiFi scan example
import time, network
wlan = network.WINC()
while (True):
scan_result = wlan.scan()
for ap in scan_result:
print("Channel:%d RSSI:%d Auth:%d BSSID:%s SSID:%s"%(ap))
print()
time.sleep(1000)