WiFi - Scan the surrounding WiFi networks

Materials

  • AmebaD [ AMB23 / AMB21 / AMB22 / BW16 / BW16-TypeC ] x 1

Example

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

Code

Copy and paste the following code into REPL to see its effect.

from wireless import WLAN
wifi = WLAN(mode = WLAN.STA)
wifi.scan()
Please confirm that QQ communication software is installed