Skip to content

ricklon/esp32react-hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

esp32 react-hello

Example of hosting a react (https://reactjs.org) project on an ESP32

esp32 configuration as web server

  • Async Web Server
#include "WiFi.h"
#include "SPIFFS.h"
#include "ESPAsyncWebServer.h"
#include <ESPmDNS.h>

Wifi.h

  • Needed to configure the wifi.
    • SSID
    • Password

SPIFFS.h SPI Flash File System (https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/storage/spiffs.html)

ESPAsyncWebServer.h Asyn Web Server

Enable mDNS

  • #include <ESPmDNS.h>

React Web Files:

  • index.html
  • app.js

React Hello world

 npm install -g serve
 serve -s build

References

Websocket tutorial: https://techtutorialsx.com/2018/08/14/esp32-async-http-web-server-websockets-introduction/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published