Turn your ESP32 into a easy to use micro web-server allowing to interact with any GPIO by simple http(s) calls.

WebhooksTriggeredESP32WiFi

Turn your ESP32 into an easy to use and manage wireless micro web-server allowing it to process reliably and asynchronouly incoming http/https requests (webhooks).

Features:

  • User-friendly auto WiFi configuration: Built-in admin web portal for fast and easy configuration without technical skills (Soft AP mode).
  • Accepts http and https requests
  • Configure any GPIO you like
  • The configured GPIOs are by automatically strapped-in: Turn any GPIO HIGH or LOW ($curl http://{IP address}/update?gpio={number}&state={0|1}), Toggle any GPIO for a given duration (http://{IP address}/trigger?gpio={number}&duration={milliseconds})
  • Non-blocking: Uses Async Web Server making it multi-threaded, super quick and responsive.

The code can be re-used as boilerplate to build your own self-hosted low-energy, uncensorable, async web server. Why reinvent the wheel? Just branch this project and start from there with all you need to get running in no time.

Connects to the WiFi in no time, in whatever environment, every time

WiFi configuration is always a pain in the back on electronic projects: They don't have a keyboard, often not even a screen, a dozens of clunky approaches for the use case "get wifi up".

A consistent, reliable, user-friendly way is now available!

This project uses the library ESPAsync_WiFiManager_Lite details. It is compatible for the ESP32/ESP8266 boards and also allows to persist data (WiFi credentials and whatever extra parameters you'd like) in EEPROM/SPIFFS/LittleFS for easy configuration/reconfiguration and autoconnect/autoreconnect of WiFi and other services without Hardcoding.

Installation

This project consists in 4 files:

  • 1 source code file (WebhooksTriggeredESP32WiFi.ino)
    • Use it as is but you could as well adapt the code to your needs.
  • 3 header files (defines.h, Credentials.h, dynamicParams.h)
    • Contains various self-explainatory configuration parameters that you can adjust to your needs.

Accessing the built-in admin web portal

This behaviour can be changed in the .h file.

You need to get the unit out of normal operations (station mode) and enter "Soft AP mode" to access its built-in admin web portal:

  • Press the RST button twice within less than 10 seconds.
  • The unit will start in "Soft AP mode"
  • You can now connect the WiFi of your laptop or handheld device to it.
  • Access the built-in admin portal at the url http://192.168.4.42

Configuration

  • Access the built-in web portal.
  • Modify the parameters of your choice.
  • Click "save".
  • The unit has stored your parameters and resumed normal operations (station mode).

Still to be done

  • Re-implement TLS:https
  • Add code for "scheduled trigger" configurable through the admin interface.
Similar Resources

The c++ micro framework for building web applications based on workflow

wfrest The c++ micro framework for building web applications based on workflow ⌛️ Build Step 1 : install workflow git clne [email protected]:sogou/workfl

Dec 1, 2022

Embed read-only filesystems into any C++11 program w. a single header, zero dependencies and zero modifications to your code

c-embed Embed read-only filesystems into any C++11 program w. a single header, zero dependencies and zero modifications to your code. Usage c-embed al

Oct 3, 2022

A cheap,simple,Ongeki controller Use Keyboard Simulation and Mouse Simulation to controller the ongeki game. Using Pro-micro control.

A cheap,simple,Ongeki controller Use Keyboard Simulation and Mouse Simulation to controller the ongeki game. Using Pro-micro control.

N.A.G.E.K.I. A cheap,simple,Ongeki controller Use Keyboard Simulation and Mouse Simulation to controller the ongeki game. Using Pro-micro control. 中文版

Nov 18, 2022

A cheap,simple,Ongeki controller Use Keyboard Simulation and Mouse Simulation to controller the ongeki game. Using Pro-micro control.

A cheap,simple,Ongeki controller Use Keyboard Simulation and Mouse Simulation to controller the ongeki game. Using Pro-micro control.

N.A.G.E.K.I. PLEASE CHECK Main Project A cheap,simple,Ongeki controller Use Keyboard Simulation and Mouse Simulation to controller the ongeki game. Us

Dec 30, 2021

Example of how to setup micro-ROS on any STM32 microcontroller

Setting up micro-ROS on any STM32 microcontroller This repository gives an example of how to set up micro-ROS on any STM32 microcontroller. For this r

Nov 23, 2022

Lock you keyboard and clean your screen. A simple, and easy way to clean your computers.

Pristine Cleaner A screen and keyboard cleaning application made to turn screen black, and lock keyboard for easy cleaning. With features such as star

Jan 16, 2022

an easy-to-use cross platform web browser controller for C++

WebBrowser++ 这是一个基于C++17的唯头文件跨平台浏览器控制库。 您只需要将本目录下的Include文件夹拷贝至您的项目中即可使用。如果使用CMake编译,则可直接include_directories(Include),也可以模仿本项目的CMakeLists.txt进行编写。 建立该

Nov 17, 2021

A program to backup all of your game savefiles on your system, neatly, and into a single folder.

Savefile Saver I created this project as a solution to a simple, but annoying problem: Backing up my game savefiles. I wanted to be able to copy all o

Oct 24, 2022

Program your micro-controllers in a fast and robust high-level language.

Toit language implementation This repository contains the Toit language implementation. It is fully open source and consists of the compiler, virtual

Nov 24, 2022
Comments
  • Manual change of states via the web interface is bugged

    Manual change of states via the web interface is bugged

    server.on("/manual" -------------> Was working when there were only 3 hard-coded gpios, now that it is dynamic need to refactor the code accordingly.

Turn 2 esp32 boards into pixhawk telemetry for use with Ardupilot/Ardurover Mission Planner.

RoverLink Turn 2 esp32 boards into pixhawk telemetry for use with Ardupilot/Ardurover Mission Planner I used to use these cheap Chinese 900mhz Pixhawk

Jan 18, 2022
C/C++ Application to solve irrigation rotation whatever two-turn rotation or three-turn rotation, longitudinal section design, hydraulic calculations, and design of hydraulic structures like weirs and tail escape.
C/C++ Application to solve irrigation rotation whatever two-turn rotation or three-turn rotation, longitudinal section design, hydraulic calculations, and design of hydraulic structures like weirs and tail escape.

Irrigation works C/C++ Application to solve irrigation rotation whatever two-turn rotation or three-turn rotation, longitudinal section design, hydrau

Jun 24, 2022
Assembly HellGate implementation that directly calls Windows System Calls and displays the PPID of the explorer.exe process
Assembly HellGate implementation that directly calls Windows System Calls and displays the PPID of the explorer.exe process

Custom HellsGate Implementation Assembly HellGate implementation that directly calls Windows System Calls and displays the PPID of the explorer.exe pr

Oct 18, 2022
ESP32 + GitHub Actions + Husarnet. A boilerplate project for ESP32 allowing in-field firmware update using GitHub Actions workflow.

esp32-internet-ota ESP32 + GitHub Actions + Husarnet. A boilerplate project for ESP32 allowing in-field firmware update using GitHub Actions workflow.

Sep 22, 2022
Raw HID keyboard forwarder to turn the Pi 400 into a USB keyboard

Raspberry Pi 400 as a USB HID Keyboard Hook your Pi 400 up to your PC somehow, using a USB Type-C cable into the power port. Anker make good ones- I u

Nov 21, 2022
Turn images into text better than caca/aalib
Turn images into text better than caca/aalib

hiptext hiptext is command line tool for rendering images and videos inside terminals. Dependencies You need clang or gcc >=4.7. You also need to inst

Nov 21, 2022
WinChipHead CH341 linux driver for I2C / SPI and GPIO mode

WinChipHead (沁恒) CH341 linux driver for I2C / SPI and GPIO mode The CH341 is declined in several flavors, and may support one or more of UART, SPI, I2

Nov 19, 2022
To turn on and off the pump, most people use a manual switch.
To turn on and off the pump, most people use a manual switch.

To turn on and off the pump, most people use a manual switch. As a result, people forget to switch off the pump from time to time, resulting in water overflow. They may forget to switch on the motor at times, resulting in a water problem later on. It also wastes a lot of electricity. To solve this problem, we need a smart device to control the pump.

Aug 20, 2022
Automatically load dlls into any executables without replacing any files!

Automatically loaded dll using xinput9_1_0 proxy. Please put the modified xinput9_1_0.dll in the executable's directory.

Nov 25, 2022
ESP32-Skid-Steer - Bruder Catepillar Skid Steer model converted to RC, controlled by an ESP32 with 2 analog joysticks and a receiver that is an ESP32 on the model.
ESP32-Skid-Steer - Bruder Catepillar Skid Steer model converted to RC, controlled by an ESP32 with 2 analog joysticks and a receiver that is an ESP32 on the model.

ESP32-Skid-Steer Bruder Catepillar Skid Steer model converted to RC, controlled by an ESP32 with 2 analog joysticks and a receiver that is an ESP32 on

Oct 27, 2022