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