TCS Pune

ESP32: Wi-Fi Web Server

Practical lesson

ESP32: Wi-Fi Web Server

Connect securely to Wi-Fi and control an output from a local web page.

◷ 55 min

Parts 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

  1. Review the circuit and confirm the board voltage.
  2. Build and inspect the wiring before applying power.
  3. Upload the example, observe the result and record your readings.
  4. 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?

Ready when you are

Need help with your laptop or computer?

Send us the model and fault details. Start your repair request online or contact TCS Pune directly.

WA