vatsake

Results 21 comments of vatsake

``` 11:28:56.038 -> Update Start: sketch_jun15b.ino.bin //Here I refreshed webpage and started upload again 11:29:03.069 -> Update Start: sketch_jun15b.ino.bin 11:29:03.069 -> ERROR[0]: No Error 11:29:09.577 -> Update Success: 361600B 11:29:09.577...

I used the same as in the example. - Raw copy paste.

> I can see the problem. My sketch can not handle the refresh of the firmware update page too. I'm interested in a solution too. We should implement some kind...

But what if you call Update.end() in ``` if (!index) { } ``` ?

> But what if you call Update.end() in > > ``` > if (!index) { > > } > ``` > > ? i Just tried it like this, it...

``` server.on("/update", HTTP_POST, [](AsyncWebServerRequest *request){ shouldReboot = !Update.hasError(); AsyncWebServerResponse *response = request->beginResponse(200, "text/plain", shouldReboot?"OK":"FAIL"); response->addHeader("Connection", "close"); request->send(response); },[](AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final){ if(!index){...

I'm no 100% sure, but the traditional ota returns error if user cancels update (ERR::USER_CANCEL or something), but asyncwebserver doesn't. Probably has some timeout feature. Asyncwebserver should implement this as...

But asyncwebserver should atleast have some kind of event that notifies that the upload (any file upload) is cancelled. Ordinary webserver has ``` else if(_authenticated && upload.status == UPLOAD_FILE_ABORTED){ Update.end();...

> But asyncwebserver should atleast have some kind of event that notifies that the upload (any file upload) is cancelled. Ordinary webserver has > > ``` > else if(_authenticated &&...

Nope. I just added a parent element to the table and added **cdkScrollable** to it.