From 6d9e11bcd113934cfddab34923ec6b58cdba20ce Mon Sep 17 00:00:00 2001 From: Luc Date: Wed, 31 Jul 2019 08:44:29 +0200 Subject: [PATCH] Fix for esp8266 core new template webserver Thanks @D-A-V --- esp3d/src/core/esp3doutput.h | 2 +- esp3d/src/modules/authentication/authentication_service.h | 2 +- esp3d/src/modules/http/http_server.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esp3d/src/core/esp3doutput.h b/esp3d/src/core/esp3doutput.h index fcce2d0e..a2703089 100644 --- a/esp3d/src/core/esp3doutput.h +++ b/esp3d/src/core/esp3doutput.h @@ -40,7 +40,7 @@ class WebServer; #define WEBSERVER WebServer #endif //ARDUINO_ARCH_ESP32 #if defined (ARDUINO_ARCH_ESP8266) -class ESP8266WebServer; +#include #define WEBSERVER ESP8266WebServer #endif //ARDUINO_ARCH_ESP8266 #endif //HTTP_FEATURE diff --git a/esp3d/src/modules/authentication/authentication_service.h b/esp3d/src/modules/authentication/authentication_service.h index a1ceef39..7ec2f575 100644 --- a/esp3d/src/modules/authentication/authentication_service.h +++ b/esp3d/src/modules/authentication/authentication_service.h @@ -48,7 +48,7 @@ class WebServer; typedef WebServer Authwebserver; #endif //ARDUINO_ARCH_ESP32 #if defined (ARDUINO_ARCH_ESP8266) -class ESP8266WebServer; +#include typedef ESP8266WebServer Authwebserver; #endif //ARDUINO_ARCH_ESP8266 #else diff --git a/esp3d/src/modules/http/http_server.h b/esp3d/src/modules/http/http_server.h index bd0a7532..647f185c 100644 --- a/esp3d/src/modules/http/http_server.h +++ b/esp3d/src/modules/http/http_server.h @@ -28,7 +28,7 @@ class WebServer; #define WEBSERVER WebServer #endif //ARDUINO_ARCH_ESP32 #if defined (ARDUINO_ARCH_ESP8266) -class ESP8266WebServer; +#include #define WEBSERVER ESP8266WebServer #endif //ARDUINO_ARCH_ESP8266