ESP32 WebSocket Server with Arduino and SPIFFS Web UI

Added:

Setup
Tools
Code
Upload
Page
Test
Wrap

Setup

0:00
Playing Section
  • 1

    Connect LED to pin 15 with a resistor.

  • 2

    Plan WebSocket server to control hardware.

  • 3

    Use ESP32 as access point for device control.

Basic microcontroller programming in C/C++ using the Arduino IDE, including compiling and uploading sketches to an ESP32.
Fundamental frontend web development concepts, specifically HTML for layout, CSS for styling, and JavaScript for client-side logic.
Understanding of the client-server model and the basic HTTP protocol, including how a browser requests and receives web pages.
Basic electronics and GPIO control, including how to wire an LED to a microcontroller and write digital signals (High/Low) to it.
Transitioning from SPIFFS to LittleFS, the modern and officially recommended file system for ESP32 and ESP8266 architectures.
Implementing real-time bidirectional telemetry, such as streaming live sensor data (e.g., DHT22 temperature) from the ESP32 to the web interface.
Handling multi-client state synchronization, ensuring that when one client toggles the LED, the UI updates instantly for all other connected clients.
Exploring IoT network security, including securing the ESP32 server with HTTPS, Secure WebSockets (WSS), and basic access control or authentication.
166.9K views2.8Klikes12:42@ShawnHymelOriginal Release: 2019-09-09

This video demonstrates how to create a web server with WebSockets on an ESP32 using Arduino, where the ESP32 acts as a WiFi access point, hosts a web server serving an HTML page from SPIFFS, and uses WebSockets to enable real-time bidirectional communication between a web browser and the ESP32 hardware, allowing users to control an LED connected to the ESP32 through a webpage button.