fix cmpiler complains
This commit is contained in:
parent
b1f276a1a7
commit
3b7054a3dd
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue