pitrix/include/http_server.h

20 lines
311 B
C
Raw Normal View History

2019-06-12 18:57:31 +00:00
#pragma once
#include "config.h"
#ifdef HTTP_SERVER_ENABLE
#include "my_wifi.h"
#include <FS.h>
#if defined ( ESP8266 )
2019-06-12 18:57:31 +00:00
extern ESP8266WebServer http_server;
#elif defined ( ESP32 )
extern ESP32WebServer http_server;
#endif
2019-06-12 18:57:31 +00:00
extern File upload_file;
2019-06-12 18:57:31 +00:00
void http_server_setup();
void http_server_loop();
#endif