[RTL8722CSM] [RTL8722DM] WiFi - WiFi Scan

Materials

  • AmebaD[AMB21 / AMB22] x 1

Steps

WiFi Scan function can help us quickly discover what WiFi networks are available in our surrounding.

This example does not require any additional hardware, thus simply copy, and paste the following code into REPL to see its effect.

1from wireless import WLAN
2wifi = WLAN(mode = WLAN.STA)
3wifi.scan()