firmware: v2 — pitidos OTA
- 3 pitidos al actualizar ESP32-CAM (via Serial al buzzer) - 4 pitidos al actualizar ESP8266 (directo al buzzer) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
// ================================================================
|
||||
// OTA CONFIG
|
||||
// ================================================================
|
||||
#define FW_VERSION 1
|
||||
#define FW_VERSION 2
|
||||
#define GITEA_HOST "https://git.nacho.myds.me"
|
||||
#define GITEA_OWNER "Natxo"
|
||||
#define GITEA_REPO "Arduino-Car"
|
||||
@@ -45,6 +45,15 @@ static void checkOTA() {
|
||||
int remoteVer = body.toInt();
|
||||
if (remoteVer <= FW_VERSION) return; // ya tenemos la última versión
|
||||
|
||||
// 3 pitidos = ESP32-CAM actualizando (via Serial al ESP8266)
|
||||
for (int i = 0; i < 3; i++) {
|
||||
Serial.print("H1");
|
||||
delay(150);
|
||||
Serial.print("H0");
|
||||
delay(150);
|
||||
}
|
||||
delay(300);
|
||||
|
||||
// Hay versión nueva → descargar y flashear
|
||||
WiFiClientSecure updateClient;
|
||||
updateClient.setInsecure();
|
||||
|
||||
Reference in New Issue
Block a user