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"
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
|
void http_server_setup();
|
|
|
|
void http_server_loop();
|
|
|
|
#endif
|