Complete the code to initialize WiFi on ESP8266.
WiFi.begin([1]);The WiFi.begin() function starts the WiFi connection using the SSID and password.
Complete the code to check if ESP32 is connected to WiFi.
if (WiFi.[1]() == WL_CONNECTED) { /* connected */ }
The WiFi.status() function returns the current connection status.
Fix the error in the code to print the ESP8266 IP address.
Serial.println(WiFi.[1]());The correct function to get the IP address is WiFi.localIP().
Fill both blanks to create a WiFi access point with ESP32.
WiFi.softAP([1], [2]);
The WiFi.softAP() function creates an access point with the given SSID and password.
Fill all three blanks to scan for WiFi networks and print their SSIDs.
int n = WiFi.[1](); for (int i = 0; i < n; i++) { Serial.println(WiFi.[2](i).[3]()); }
WiFi.scanNetworks() returns the number of networks found.WiFi.SSID(i) gets the SSID of the i-th network.c_str() converts the SSID to a printable string.
