refactor: enhance OTA update process with improved size checks and debugging output

This commit is contained in:
2025-02-20 14:28:11 +01:00
parent 463eaf4b6f
commit 5f52775984
2 changed files with 20 additions and 15 deletions

View File

@ -3,6 +3,12 @@
#include <ESPAsyncWebServer.h>
// Update size unknown constant, falls nicht bereits definiert
#ifndef UPDATE_SIZE_UNKNOWN
#define UPDATE_SIZE_UNKNOWN 0xFFFFFFFF
#endif
void stopAllTasks();
void handleOTAUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final);
#endif