MainFlowControl.h 891 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #ifndef MAINFLOWCONTROL_H
  3. #define MAINFLOWCONTROL_H
  4. #include <esp_log.h>
  5. #include <string>
  6. #include <esp_http_server.h>
  7. #include "CImageBasis.h"
  8. #include "ClassFlowControll.h"
  9. #include "CameraSettings.h"
  10. #include "openmetrics.h"
  11. struct camera_flow_config_temp_t : public CameraSettings
  12. {
  13. };
  14. extern camera_flow_config_temp_t CFstatus;
  15. extern ClassFlowControll flowctrl;
  16. void register_server_main_flow_task_uri(httpd_handle_t server);
  17. void CheckIsPlannedReboot(void);
  18. bool getIsPlannedReboot(void);
  19. void InitializeFlowTask(void);
  20. void DeleteMainFlowTask(void);
  21. bool isSetupModusActive(void);
  22. int getCountFlowRounds(void);
  23. #ifdef ENABLE_MQTT
  24. esp_err_t MQTTCtrlFlowStart(std::string _topic);
  25. #endif // ENABLE_MQTT
  26. esp_err_t GetRawJPG(httpd_req_t *req, bool previewCapture = false);
  27. esp_err_t GetJPG(std::string _filename, httpd_req_t *req);
  28. #endif // MAINFLOWCONTROL_H