esp32 firmware for a toaster reflow oven WIP!!!!!
您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
 
 
 
 
 
 
reflower/components/fileserver/readme
Ondřej Hruška ef7866a29f
add webserver components, some webserver fices and improvements in templating, add real time history chart
6 年前
..
README.md add webserver components, some webserver fices and improvements in templating, add real time history chart 6 年前
rebuild_file_tables.php add webserver components, some webserver fices and improvements in templating, add real time history chart 6 年前

README.md

Place the rebuild_file_tables.php script in a files subfolder of the main component. It requires PHP 7 to run.

This is what the setup should look like

main/files/embed/index.html
main/files/rebuild_file_tables.php
main/CMakeLists.txt
main/main.c

Add this to your CMakeLists.txt before register_component:

#begin staticfiles
#end staticfiles

The script will update CMakeLists.txt and generate files_enum.c and files_enum.h when run.

main/files/files_enum.h
main/files/files_enum.c

Ensure files/files_enum.c is included in the build.

www_get_static_file() is implemented as weak to let you provide custom access authentication logic.