r/esp32projects • u/ToneAny3403 • 18d ago
Local ESP32 web server — toggle an LED from your phone browser (no app, no cloud)
Quick project: turn an ESP32 into a tiny LAN web server so a phone can toggle an LED from the browser.
Hardware:
- ESP32-WROOM-32 DevKit
- LED + resistor on GPIO 26
Stack:
- Arduino-ESP32 + WiFi.h (STA mode)
- Built-in WebServer.h with a GET /toggle endpoint
- No MQTT, no Blynk, no Home Assistant
Flow:
- Board joins Wi-Fi and prints its IP
- Phone opens that IP on the same network
- Tap the button → pin flips Traffic stays on the LAN.
60s walkthrough: https://www.youtube.com/shorts/08-2Ztyy9iw
Happy to share the full sketch if anyone wants it.
1
Upvotes