A lightweight boilerplate sketch for ESP32 devices that enables HTTP-based operation.
-
Prepare Your Credentials:
- Rename
credentials.h.exampletocredentials.h. - Update the file with your WiFi credentials.
- Rename
-
LED Status Indicators:
- Blue LED (blinking): Connecting or reconnecting to WiFi.
- Blue LED (solid): Successfully connected to WiFi.
- Red LED (quick blink): HTTP request received.
The LEDs will perform a self-test sequence before the device starts operating.
-
Customizing LED Pins:
- Open
leds.inoin your preferred code editor. - Update the
#definestatements for LED pins to match your hardware setup.
- Open
-
Testing:
- The HTTP server includes a root (
/) route that returns basic information about the device. - Use this route to verify that the device is online and responding to requests.
- The HTTP server includes a root (