mirror of
https://github.com/sweidac/kidsbox.git
synced 2025-07-27 19:31:54 +02:00
22 lines
420 B
C++
22 lines
420 B
C++
#ifndef _WEB_INTERFACE_HPP
|
|
#define _WEB_INTERFACE_HPP
|
|
|
|
#include <esp_http_server.h>
|
|
|
|
class WebInterface {
|
|
httpd_handle_t server = NULL;
|
|
|
|
public:
|
|
WebInterface();
|
|
void start();
|
|
void finishResourceRegistrations();
|
|
void registerResource(httpd_uri_t* config);
|
|
void initSD();
|
|
|
|
private:
|
|
httpd_handle_t start_webserver();
|
|
void registerFileServer();
|
|
//esp_err_t hello_get_handler(httpd_req_t *req);
|
|
};
|
|
|
|
#endif |