Complete the code to include the WiFi library for ESP8266.
#include <[1]>
The ESP8266 requires the ESP8266WiFi.h library to manage WiFi connections.
Complete the code to connect to a WiFi network using SSID and password.
WiFi.begin([1], password);The SSID must be a string literal enclosed in double quotes.
Fix the error in the code to check if WiFi is connected.
if (WiFi.[1]() == WL_CONNECTED) {
The correct function to check WiFi connection status is status().
Fill both blanks to print the local IP address after connecting to WiFi.
Serial.println(WiFi.[1]()); Serial.print("IP Address: "); Serial.println(WiFi.[2]());
First, check connection status with status(). Then get the IP with localIP().
Fill all three blanks to create a WiFi access point with SSID and password, then print its IP.
WiFi.softAP([1], [2]); Serial.print("AP IP: "); Serial.println(WiFi.[3]());
Use softAP with SSID and password strings, then get the access point IP with softAPIP().
