btclock_v3/src/lib/ota.hpp

15 lines
344 B
C++
Raw Normal View History

#include <Arduino.h>
#include <ArduinoOTA.h>
2023-11-30 22:56:50 +01:00
#include "lib/config.hpp"
#include "lib/shared.hpp"
void setupOTA();
void onOTAStart();
void handleOTATask(void *parameter);
void onOTAProgress(unsigned int progress, unsigned int total);
// void downloadUpdate();
2023-11-13 01:02:01 +01:00
void onOTAError(ota_error_t error);
2023-11-30 22:56:50 +01:00
void onOTAComplete();
2024-06-29 02:19:25 +02:00
bool getIsOTAUpdating();