forked from me-no-dev/ESPAsyncWebServer
fix cmpiler complains
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef _AsyncWebServer_H_
|
||||
#define _AsyncWebServer_H_
|
||||
#ifndef _ESPAsyncWebServer_H_
|
||||
#define _ESPAsyncWebServer_H_
|
||||
|
||||
#include "Arduino.h"
|
||||
|
||||
|
@@ -68,7 +68,10 @@ void AsyncWebServer::on(const char* uri, WebRequestMethod method, ArRequestHandl
|
||||
}
|
||||
|
||||
void AsyncWebServer::on(const char* uri, ArRequestHandlerFunction onRequest){
|
||||
on(uri, HTTP_ANY, onRequest);
|
||||
AsyncCallbackWebHandler* handler = new AsyncCallbackWebHandler();
|
||||
handler->setUri(uri);
|
||||
handler->onRequest(onRequest);
|
||||
addHandler(handler);
|
||||
}
|
||||
|
||||
void AsyncWebServer::serveStatic(const char* uri, fs::FS& fs, const char* path, const char* cache_header){
|
||||
|
Reference in New Issue
Block a user