From c3a6cc8f1d395ad847ca6d97f0618e5530c2425b Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Sun, 31 Jan 2016 19:09:59 +0200 Subject: [PATCH] add the callbacks so it will compile copy/pasted --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index a50fc89..7f963ea 100644 --- a/README.md +++ b/README.md @@ -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);