MainFlowControl.h 1.1 KB

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