01 Overview
Scan prints SSID, RSSI and auth mode. Provisioning UIs are built on this.
- Use when: showing networks before join, or hunting interference.
- Skip when: already joined and not changing network.
Join Wi-Fi
List nearby APs and RSSI. Used for channel choice and provisioning lists.
Official path: examples/wifi/scan
Scan prints SSID, RSSI and auth mode. Provisioning UIs are built on this.
1. Init Wi-Fi and start scan.
2. Read AP records in the callback.
3. Products filter hidden SSIDs, sort by RSSI, and avoid blocking the main task.
中文
连上 Wi-Fi
列出周围热点和信号,用来选信道、做配网列表。
官方路径: examples/wifi/scan
扫描周边 AP,打印 SSID、RSSI、认证类型。配网 App 的列表通常来自这里。
1. 初始化 Wi-Fi,发起 scan。
2. 回调里拿到 AP 记录。
3. 产品要过滤隐藏网、按 RSSI 排序、避免阻塞主任务。