This project runs an ESP32 as a WiFi access point with a simple web server to toggle LEDs, and a local Node.js UI that proxies button clicks to the ESP32 endpoints.
# From the project root
pio run -t uploadOptional: open the serial monitor to confirm the AP and IP.
pio device monitorNow connect your computer/phone to the ESP32 access point:
- SSID:
ESP32_Server - Password:
12345678
The ESP32 AP IP is http://192.168.4.1 and exposes:
http://192.168.4.1/onhttp://192.168.4.1/off
cd server
pnpm install
pnpm startOpen the UI at http://localhost:3000 and use the buttons to toggle the LEDs.
Check these first:
- The ESP32 AP is visible and your device is connected to
ESP32_Server. - The ESP32 IP matches
http://192.168.4.1(see serial output). - Port
3000isn’t already in use.