update to v1.1.0

This commit is contained in:
jomjol
2020-09-06 21:21:04 +02:00
parent 9363873871
commit 78b56ce9d4
8 changed files with 156 additions and 248 deletions

View File

@@ -338,11 +338,13 @@ esp_err_t handler_ota_update(httpd_req_t *req)
std::string in, out, zw;
in = "/sdcard/firmware/html.zip";
out = "/sdcard/html/";
out = "/sdcard/html2/";
unzip(in, out);
zw = "Unzip html Done";
httpd_resp_sendstr_chunk(req, zw.c_str());
zw = "HTML Update Successfull!<br><br>No reboot necessary";
httpd_resp_sendstr_chunk(req, zw.c_str());
httpd_resp_sendstr_chunk(req, NULL);
return ESP_OK;
}