Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 28cdcf6

Browse files
committed
Play nice with regular web server on esp32
Include the regular web server first and then the Async in your sketch
1 parent decdca5 commit 28cdcf6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/ESPAsyncWebServer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class AsyncStaticWebHandler;
5151
class AsyncCallbackWebHandler;
5252
class AsyncResponseStream;
5353

54+
#ifndef WEBSERVER_H
5455
typedef enum {
5556
HTTP_GET = 0b00000001,
5657
HTTP_POST = 0b00000010,
@@ -61,6 +62,8 @@ typedef enum {
6162
HTTP_OPTIONS = 0b01000000,
6263
HTTP_ANY = 0b01111111,
6364
} WebRequestMethod;
65+
#endif
66+
6467
typedef uint8_t WebRequestMethodComposite;
6568
typedef std::function<void(void)> ArDisconnectHandler;
6669

0 commit comments

Comments
 (0)