Start Using ESP32 with Under Deck Lib.
ESP32 WebSocket and Command Handler
Section titled “ESP32 WebSocket and Command Handler”This project provides a comprehensive solution for controlling an ESP32 via a WebSocket connection. It allows for dynamic pin configuration, saving Wi-Fi credentials to flash memory, and handling real-time sensor and button events. The core functionality is based on JSON commands, which can be sent via a WebSocket server or directly through a USB serial connection.