forked from me-no-dev/ESPAsyncWebServer
add the callbacks so it will compile copy/pasted
This commit is contained in:
12
README.md
12
README.md
@@ -289,6 +289,18 @@ const char* password = "your-pass";
|
|||||||
const char* http_username = "admin";
|
const char* http_username = "admin";
|
||||||
const char* http_password = "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(){
|
void setup(){
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
|
Reference in New Issue
Block a user