Web updater improved

This commit is contained in:
2026-03-05 19:10:03 +01:00
parent 627790b5fc
commit b55ce57ce9
5 changed files with 17 additions and 28 deletions

View File

@@ -22,16 +22,5 @@ String get_sha256(String payload) {
buffer[i*2+1] = hexmap[shaResult[i] & 0x0F];
}
buffer[sizeof(buffer) - 1] = '\0';
String hash = String(buffer);
ESP_LOGI(TAG, "SHA256 payload: %s", payload);
ESP_LOGI(TAG, "SHA256 hash: %s", hash.c_str());
//Serial.print("SHA256 payload: ");
//Serial.print(payload);
//Serial.println();
//Serial.print("SHA256-Hash: ");
//Serial.print(hash);
//Serial.println();
return hash;
return String(buffer);
}