[RTL8722CSM] [RTL8722DM] WiFi - WiFi Connect


  • AmebaD[AMB21 / AMB22] x 1


Ameba can connect to WiFi access point with open security or WPA2 security type, which is the most common security type used in household wireless routers.

Here we are going to connect to a WiFi access point using code below, copy and paste the following code line by line into REPL to see their effects.

1from wireless import WLAN
2wifi = WLAN(mode = WLAN.STA)
3wifi.connect(ssid = "YourWiFiName", pswd = "YourWiFiPassword")