2023-11-10 23:18:14 +01:00
|
|
|
#include <Arduino.h>
|
|
|
|
#include <ArduinoOTA.h>
|
|
|
|
|
2023-11-30 22:56:50 +01:00
|
|
|
#include "lib/config.hpp"
|
|
|
|
#include "lib/shared.hpp"
|
|
|
|
|
2023-11-10 23:18:14 +01:00
|
|
|
void setupOTA();
|
|
|
|
void onOTAStart();
|
2023-11-12 12:38:28 +01:00
|
|
|
void handleOTATask(void *parameter);
|
2023-11-13 00:33:48 +01:00
|
|
|
void onOTAProgress(unsigned int progress, unsigned int total);
|
2024-09-11 03:23:41 +02:00
|
|
|
// 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();
|