MainFlowControl.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. bool changedCameraSettings;
  14. };
  15. extern camera_flow_config_temp_t CFstatus;
  16. extern ClassFlowControll flowctrl;
  17. esp_err_t setCCstatusToCFstatus(void); // CCstatus >>> CFstatus
  18. esp_err_t setCFstatusToCCstatus(void); // CFstatus >>> CCstatus
  19. esp_err_t setCFstatusToCam(void); // CFstatus >>> Kamera
  20. void register_server_main_flow_task_uri(httpd_handle_t server);
  21. void CheckIsPlannedReboot(void);
  22. bool getIsPlannedReboot(void);
  23. void InitializeFlowTask(void);
  24. void DeleteMainFlowTask(void);
  25. bool isSetupModusActive(void);
  26. int getCountFlowRounds(void);
  27. #ifdef ENABLE_MQTT
  28. esp_err_t MQTTCtrlFlowStart(std::string _topic);
  29. #endif // ENABLE_MQTT
  30. esp_err_t GetRawJPG(httpd_req_t *req);
  31. esp_err_t GetJPG(std::string _filename, httpd_req_t *req);
  32. #endif // MAINFLOWCONTROL_H