From c9e11928047b439d4d7950098d279d2f0db8dfde Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Thu, 30 May 2024 08:27:56 +0200 Subject: [PATCH] switch to ha-mqtt library, remove altitude --- src/ota.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ota.h b/src/ota.h index b834a8a..43b4c05 100644 --- a/src/ota.h +++ b/src/ota.h @@ -7,10 +7,13 @@ namespace Ota { void setup() { ArduinoOTA.onStart([]() { - Serial.println("Start"); + Serial.println("Starting OTA"); + Mqtt::publishCleanupConfig(); + delay(2000); + Mqtt::disconnect(); }); ArduinoOTA.onEnd([]() { - Serial.println("\nEnd"); + Serial.println("\nOTA Finished"); }); ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) { Serial.printf("Progress: %u%%\r", (progress / (total / 100)));