f_out.write(top.encode(encoding='utf-8')) | f_out.write(top.encode(encoding='utf-8')) | ||||
src='include/http/' | |||||
out='include/' | |||||
src='data/' | |||||
out='compress/' | |||||
for f in os.listdir(src): | for f in os.listdir(src): | ||||
convert_to_gzip(src, out, f) | convert_to_gzip(src, out, f) |
#include "httpserver.h" | #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* ssid = STASSID; | ||||
const char* password = STAPSK; | const char* password = STAPSK; | ||||
os_timer_t timer1; | os_timer_t timer1; | ||||
int timer_arg; | int timer_arg; | ||||
void setup_webserver(); | |||||
void setup_ota(); | void setup_ota(); | ||||
void setup_pwm_pca9685(); | void setup_pwm_pca9685(); | ||||
void handleNotFound(); | void handleNotFound(); |
CD .\include\http | |||||
CD .\data | |||||
py.exe -m http.server | py.exe -m http.server |
cd include/http | |||||
cd data | |||||
python3 -m http.server | python3 -m http.server |