mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Everything except the DAC script works. That has to be fixed. Anyway, we have a ton of example for launch. So, hopefully, comments about how to do stuff should be limited. That said, the PYB module is in a poor state still. Stuff kinda works and kinda doesn't from it. One day... There won't be any fires to put out on this project and I can stop working so hard.
16 lines
349 B
Python
16 lines
349 B
Python
# Scan Example
|
|
#
|
|
# This example shows how to scan for networks with the WiFi shield.
|
|
|
|
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)
|