Example explanation 14-WiFi-Shield->scan Scan network

Video tutorial 12 - WIFI wireless image transmission: https://singtown.com/learn/50005/
Video Tutorial 39 - WIFI Programming for OpenMV Remote Debugging: 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)

Singtown Technology OpenMV official Chinese document function explanation:

results matching ""

    No results matching ""