Challenge - 5 Problems
WiFi Mastery on ESP8266 and ESP32
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediateWiFi Scan Result Count on ESP8266
What is the output of this ESP8266 Arduino code snippet that scans for WiFi networks and prints the number of networks found?
IOT Protocols
int n = WiFi.scanNetworks();
Serial.println(n);Attempts:
2 left
💡 Hint
The scanNetworks() function returns the count of networks found.
✗ Incorrect
The scanNetworks() function returns an integer count of detected WiFi networks. The Serial.println prints this number.
🧠 Conceptual
intermediateDifference in WiFi Modes between ESP8266 and ESP32
Which statement correctly describes a key difference in WiFi modes supported by ESP8266 and ESP32?
Attempts:
2 left
💡 Hint
Check if both chips can act as client and hotspot at the same time.
✗ Incorrect
Both ESP8266 and ESP32 support simultaneous station and access point modes, allowing them to connect to WiFi and create a hotspot at once.
❓ Troubleshoot
advancedTroubleshooting ESP32 WiFi Connection Failures
An ESP32 device fails to connect to a WPA2 WiFi network. Which of the following is the most likely cause?
Attempts:
2 left
💡 Hint
Check credentials carefully when connection fails.
✗ Incorrect
ESP32 supports WPA2 security. Connection failures are often due to wrong SSID or password.
✅ Best Practice
advancedBest Practice for Power Saving in ESP8266 WiFi
Which option is the best practice to reduce power consumption when using WiFi on ESP8266?
Attempts:
2 left
💡 Hint
Power saving involves reducing active WiFi time.
✗ Incorrect
Using WiFi sleep mode and disconnecting when idle reduces power consumption significantly on ESP8266.
🔀 Workflow
expertCorrect Sequence to Initialize WiFi on ESP32
What is the correct order of steps to initialize WiFi in station mode on ESP32 using Arduino framework?
Attempts:
2 left
💡 Hint
Start serial first, then set mode, then connect, then wait.
✗ Incorrect
Serial communication must start first to see output. Then set WiFi mode, begin connection, and wait for status.
