diff --git a/create_gz_files.py b/create_gz_files.py index 0c06809..57d2054 100644 --- a/create_gz_files.py +++ b/create_gz_files.py @@ -28,8 +28,8 @@ def convert_to_gzip(src, out, f): f_out.write(top.encode(encoding='utf-8')) -src='include/http/' -out='include/' +src='data/' +out='compress/' for f in os.listdir(src): convert_to_gzip(src, out, f) \ No newline at end of file diff --git a/data/compressed.html.gzip b/data/compressed.html.gzip deleted file mode 100644 index 6c07718..0000000 Binary files a/data/compressed.html.gzip and /dev/null differ diff --git a/include/http/firefox.png b/include/http/firefox.png deleted file mode 100644 index c3af122..0000000 Binary files a/include/http/firefox.png and /dev/null differ diff --git a/src/main.cpp b/src/main.cpp index abc3e62..ff5124c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,18 +21,12 @@ extern "C" { #include "httpserver.h" -#include "index.html.gz.h" -#include "style.css.gz.h" -#include "favicon.png.gz.h" -// images are possible - const char* ssid = STASSID; const char* password = STAPSK; os_timer_t timer1; int timer_arg; -void setup_webserver(); void setup_ota(); void setup_pwm_pca9685(); void handleNotFound(); diff --git a/webtest.cmd b/webtest.cmd index a5f46f7..28fa7f5 100755 --- a/webtest.cmd +++ b/webtest.cmd @@ -1,2 +1,2 @@ -CD .\include\http +CD .\data py.exe -m http.server \ No newline at end of file diff --git a/webtest.sh b/webtest.sh index c057647..a80d793 100755 --- a/webtest.sh +++ b/webtest.sh @@ -1,2 +1,2 @@ -cd include/http +cd data python3 -m http.server \ No newline at end of file