I want to develop a ReactJS project using the ESP32.
* While at first it sounded unrealistic, I realized that the the main app would be running on a tablet, phone or computer.
* The main stumbling block, I see at this time, is the ability to serve the static ReactJS file from the ESP32 to the device connecting to it.
* The ReactJS file will be from 750 KB to 2 MB, which would not be a problem if I could store it on a SD Card.
So my question is; Has anyone implemented SPIFFS for a SD memory card?
* I have no need to append or update the content in a file, just the ability to write and read a complete file.
The other requirements are listed below. Some questions I have are:
* Would I implement this in JS or C or a combo of both?
* Should I even be doing this on a ESP32?
* How far are we from being able to mount a SD card?
* Is DMA implemented in Mongoose, or do I need to go into the ESP32 API?
Here is a list of everything I think I will need. Any and all advice is appreciated.
WiFi - Access Point:
* No SSL or TLS, application is point to point
HTTP Web Server:
* The server needs to serve 1 large static ReactJS application file along with a png logo resource file.
* These file will be up to 1-2 Megs.
* They will be stored and retrieved from a SD Card or potentially a serial flash.
UART: For device driver which will interface serially with another device. The UART will need to:
* Write short, 10-40 Byte strings
* Read long, 10-40 KB strings. Buffer requirements are a concern here.
SPIFF and or SD interface for storing and serving the above :
* Write once read many large 1-2 Meg file
* Write and read many 10-40 KB files
Websocket for interacting with tablet running the ReactJS application.:
* Listen for short: 10-100 Byte JSON command objects
* Write medium: 20-50KB JSON response objects to phone or tablet (for graphs)