Play nice with regular web server on esp32

Include the regular web server first and then the Async in your sketch
This commit is contained in:
me-no-dev 2018-07-05 16:05:04 +02:00
parent decdca5a73
commit 28cdcf666d
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class AsyncStaticWebHandler;
class AsyncCallbackWebHandler;
class AsyncResponseStream;
#ifndef WEBSERVER_H
typedef enum {
HTTP_GET = 0b00000001,
HTTP_POST = 0b00000010,
@ -61,6 +62,8 @@ typedef enum {
HTTP_OPTIONS = 0b01000000,
HTTP_ANY = 0b01111111,
} WebRequestMethod;
#endif
typedef uint8_t WebRequestMethodComposite;
typedef std::function<void(void)> ArDisconnectHandler;