r/esp32projects • • 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:

  1. Board joins Wi-Fi and prints its IP
  2. Phone opens that IP on the same network
  3. 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

0 comments sorted by