add the callbacks so it will compile copy/pasted

This commit is contained in:
Me No Dev 2016-01-31 19:09:59 +02:00
parent ca9bcee8fa
commit c3a6cc8f1d
1 changed files with 12 additions and 0 deletions

View File

@ -289,6 +289,18 @@ const char* password = "your-pass";
const char* http_username = "admin";
const char* http_password = "admin";
void onRequest(AsyncWebServerRequest *request){
//Handle Unknown Request
request->send(404);
}
void onBody(AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total){
//Handle body
}
void onUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final){
//Handle upload
}
void setup(){
Serial.begin(115200);