feat: enhance OTA upload handling with chunk validation and timeout checks

This commit is contained in:
2025-02-21 09:24:54 +01:00
parent 4477537cec
commit 8182b5f684
6 changed files with 210 additions and 83 deletions

View File

@ -78,6 +78,8 @@ uint8_t wifiErrorCounter = 0;
// ##### PROGRAM START #####
void loop() {
/*
// Überprüfe den WLAN-Status
if (WiFi.status() != WL_CONNECTED) {
wifiErrorCounter++;
@ -87,7 +89,8 @@ void loop() {
wifiOn = true;
}
if (wifiErrorCounter > 20) ESP.restart();
*/
unsigned long currentMillis = millis();
// Send AMS Data min every Minute