Fix compilacion OTA y firmware inicial ESP32-CAM

- Corregido bug: String.trim() devuelve void en Arduino, separado de toInt()
- Añadido firmware/esp32cam/firmware.bin (v1, compilado con min_spiffs OTA)
- min_spiffs: 1.87MB por particion OTA, mas que suficiente (firmware ocupa 1.29MB)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Natxo1000
2026-06-02 10:24:08 +02:00
parent dacc913c5a
commit 642ec3ef5e
3 changed files with 4 additions and 2 deletions

View File

@@ -71,7 +71,8 @@ static void checkOTA() {
http.end();
if (code == HTTP_CODE_OK) {
int remoteVer = body.trim().toInt();
body.trim();
int remoteVer = body.toInt();
if (remoteVer > FW_VERSION) {
BearSSL::WiFiClientSecure updateClient;
updateClient.setInsecure();

View File

@@ -41,7 +41,8 @@ static void checkOTA() {
if (code != HTTP_CODE_OK) return; // Gitea no disponible, continúa normal
int remoteVer = body.trim().toInt();
body.trim();
int remoteVer = body.toInt();
if (remoteVer <= FW_VERSION) return; // ya tenemos la última versión
// Hay versión nueva → descargar y flashear

Binary file not shown.