openmv/usr/examples/14-WiFi-Shield/scan.py
2016-04-05 22:36:03 +02:00

12 lines
289 B
Python

# Simple WiFi scan example
import time, network
wlan = network.WINC()
print("\nFirmware version:", wlan.fw_version())
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)