add the callbacks so it will compile copy/pasted
This commit is contained in:
parent
ca9bcee8fa
commit
c3a6cc8f1d
12
README.md
12
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);
|
||||
|
|
Loading…
Reference in New Issue