mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 11:36:51 +03:00
* delete HTML directory on an update * delete HTML directory on an update * rename html folder * swap HTML folders after extracting * . * . * . * . * . * . * move SD card check, SD card directories setup and update to before the PSRAM init. The update should be as early as possible to allow updates even if the PSRAM or cam fails. * . * . * Update Helper.cpp * Update Helper.h * . --------- Co-authored-by: CaCO3 <caco@ruinelli.ch> Co-authored-by: SybexX <Heinrich-Tuning@web.de>
21 lines
672 B
C++
21 lines
672 B
C++
#pragma once
|
|
|
|
#ifndef SERVERFILE_H
|
|
#define SERVERFILE_H
|
|
|
|
#include <esp_http_server.h>
|
|
#include <string>
|
|
|
|
void register_server_file_uri(httpd_handle_t server, const char *base_path);
|
|
|
|
void unzip(std::string _in_zip_file, std::string _target_directory);
|
|
std::string unzip_new(std::string _in_zip_file, std::string _html_tmp, std::string _html_final, std::string _target_bin, std::string _main = "/sdcard/", bool _initial_setup = false);
|
|
|
|
|
|
void delete_all_in_directory(std::string _directory);
|
|
|
|
esp_err_t get_tflite_file_handler(httpd_req_t *req);
|
|
esp_err_t get_data_file_handler(httpd_req_t *req);
|
|
esp_err_t get_numbers_file_handler(httpd_req_t *req);
|
|
|
|
#endif //SERVERFILE_H
|