OpenIris/ESP/include/httpdHandler.h
Zdzislaw Goik b788823375
Feature/refactor architecture (#5)
* 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
2022-03-20 15:24:28 +01:00

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();
};
}