This commit is contained in:
2025-10-06 18:27:50 +02:00
commit 3e191a4f60
213 changed files with 22261 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
#pragma once
#include <ArduinoOTA.h>
#include <WiFi.h>
#include <logger.hpp>
class OTAManager {
public:
OTAManager();
~OTAManager();
void begin();
void enable();
void disable();
bool isEnabled() const;
String getStatus() const;
private:
bool enabled;
String status;
void onStart();
void onEnd();
void onProgress(unsigned int progress, unsigned int total);
void onError(ota_error_t error);
};