An ESP32/Arduino sketch that uses a GPIO-change interrupt to fire off an HTTP GET reporting a device status to your server.
- Interrupt-driven HTTP GET on pin change
- Easy configuration of WiFi credentials, device ID & server URL
- Built with the Arduino-ESP32 core and HTTPClient
- ESP32 development board
- Arduino IDE (https://www.arduino.cc/en/software) with “ESP32 by Espressif” support installed
- A server endpoint ready to accept GET requests
- GPIO 13 → your sensor or switch (pulled up internally)
- ESP32 GND → sensor GND
- Clone this repo.
- Open
sensor_interrupt_client.ino
in Arduino IDE. - Configure pins, WiFi, URL.
- Upload to your ESP32.
- Flip your sensor/switch → check Serial Monitor for HTTP response.