server_ota.h 334 B

1234567891011121314151617181920
  1. #pragma once
  2. #ifndef SERVEROTA_H
  3. #define SERVEROTA_H
  4. #include <esp_log.h>
  5. #include <esp_http_server.h>
  6. #include <string>
  7. void register_server_ota_sdcard_uri(httpd_handle_t server);
  8. void CheckOTAUpdate();
  9. void doReboot();
  10. void hard_restart();
  11. void CheckUpdate();
  12. static bool ota_update_task(std::string fn);
  13. #endif //SERVEROTA_H