ESP32: Wi-Fi Web Server
Connect securely to Wi-Fi and control an output from a local web page.
◷ 55 minParts and tools
- ESP32 development board
- USB data cable
- LED and 220 Ω resistor
Lesson
Learning objective
Connect securely to Wi-Fi and control an output from a local web page.
Procedure
- Review the circuit and confirm the board voltage.
- Build and inspect the wiring before applying power.
- Upload the example, observe the result and record your readings.
- Change one parameter, predict the result and test again.
Troubleshooting
Check power, ground, pin selection, polarity, compiler target and serial output. Use a multimeter or logic analyser where appropriate.
Example code
#include <WiFi.h>
// Store credentials securely for production.
void setup(){ Serial.begin(115200); WiFi.begin("SSID","PASSWORD"); }
void loop(){}Knowledge check
Which ESP32 feature enables local network projects?
