例程讲解14-WiFi-Shield->scan 扫描网络

视频教程12 - WIFI无线图传:https://singtown.com/learn/50005/
视频教程39 - WIFI编程对OpenMV远程调试:https://singtown.com/learn/50899/
# Scan Example
#
# 此示例显示如何使用WiFi扩展或者OpenMV RT自带的WIFI来扫描网络。

import time
import network

wlan = network.WLAN(network.STA_IF)
wlan.active(True)

print("Scanning...")
while True:
    scan_result = wlan.scan()
    for ap in scan_result:
        print(
            "SSID: %s BSSID: %s Channel: %d RSSI: %d Auth: %d"
            % (ap[0], ":".join(["%X" % i for i in ap[1]]), ap[2], ap[3], ap[4])
        )
    print()
    time.sleep_ms(1000)

星瞳科技OpenMV官方中文文档函数讲解:

results matching ""

    No results matching ""