Air quality sensor
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Ondřej Hruška c2e87940f2 Initial template version based of cspemu 3 years ago
..
README.md Initial template version based of cspemu 3 years ago
rebuild_file_tables.php Initial template version based of cspemu 3 years ago

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.