This repository contains a web application for ESP32 that enables users to upload, delete, download, and format files. Additionally, it includes a routine to transmit data from a medical dataset uploaded on the SPIFFS using an MCP4725 DAC peripheral.
- The final deployed application can be found under
V3/
. - Web application files (HTML/CSS/JS) are stored as a
.h
file underinclude/
. - The webserver and DAC routine application are located in
src/
. - The maximum possible partition table for a 6MB ESP32 V2 is provided in
no_ota_2_2.csv
. - PlatformIO configuration files for
featheresp32
andadafruit_feather_esp32_v2
are available inplatformio.ini
.
- There seems to be a limit to the amount of CSS that can be rendered at runtime when supplied using inline
<style>
. If your application requires elaborate CSS and/or frameworks, it's recommended to load the files onto SPIFFS and reference them in your HTML. - Since this project necessitated SPIFFS formatting capability, the HTML, CSS, and JS files are stored in app storage as header files. If this isn't an issue for your project, it's better to have separate
.html
,.css
, and.js
files in SPIFFS. - The app will be served at
http://"your-hostname"
. By default -->retia_cp200
. ReferV3
/retia.ino
for complete wifi config details. - The app also has an API through which you can access the app via serial. You can test it using Docklight etc.
V5/
is a "serial" version of the app, without the web app capabilites. Think of it as a glorified DAC system hooked onto your PC. It has an API that can be used to transmit files directly via serial. Usingcom_script.py
, you can trasmit your local file. The script allows you to change your COM port, file location etc. The idea behind this implementation is that now you have no limit on file that has to be trasmitted, as the file will be on your PC and not SPIFFS. Note: The script is configured to scale down DAC's reference voltage of 3.3V to 3.0V. (SeeV5/retia.ino
)
Parts of the SPIFFS upload mechanism are based on this repository.