mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
* Refactor everything under one namespace, turn most things into classes, add support for selecting ROI in cameraHandler, add state management * Remove unsued main.py file - other projects are working on that implementation
21 lines
528 B
C++
21 lines
528 B
C++
#pragma once
|
|
#define PART_BOUNDARY "123456789000000000000987654321"
|
|
|
|
#include "esp_camera.h"
|
|
#include "esp_http_server.h"
|
|
|
|
namespace OpenIris{
|
|
namespace HTTPHelpers {
|
|
esp_err_t stream_handler(httpd_req_t *req);
|
|
esp_err_t parse_get(httpd_req_t *req, char **obuf);
|
|
esp_err_t command_handler(httpd_req_t *req);
|
|
}
|
|
|
|
class HTTPDHandler{
|
|
private:
|
|
httpd_handle_t camera_httpd = nullptr;
|
|
httpd_handle_t control_httpd = nullptr;
|
|
public:
|
|
int startStreamServer();
|
|
};
|
|
} |