Worked on the upload stuff. It works, but the SD card seems to die after a few MB... :-/

This commit is contained in:
2019-11-17 14:23:17 +01:00
parent 8e5a3195b9
commit 9f442259e9
2 changed files with 39 additions and 7 deletions

View File

@ -16,6 +16,7 @@ private:
void _handle_upload(AsyncWebServerRequest* request, String filename, size_t index, uint8_t* data, size_t len, bool final);
uint16_t _chunk_length;
uint8_t* _chunk;
File _upload_file;
uint32_t _file_size;
uint32_t _file_size_done;
bool _need_header;