2018-08-12 15:42:58 +02:00
|
|
|
#ifndef OTA_H
|
|
|
|
#define OTA_H
|
|
|
|
|
2018-09-24 16:36:11 +02:00
|
|
|
#ifdef USE_OTA
|
|
|
|
|
2018-09-17 17:23:02 +02:00
|
|
|
#include "globals.h"
|
2020-03-29 18:08:52 +02:00
|
|
|
#include "led.h"
|
|
|
|
#include "display.h"
|
2020-10-04 19:10:36 +02:00
|
|
|
#include "configmanager.h"
|
2020-03-29 18:08:52 +02:00
|
|
|
|
2018-11-20 15:02:37 +01:00
|
|
|
#include <Update.h>
|
2018-08-12 15:42:58 +02:00
|
|
|
#include <WiFi.h>
|
2018-09-16 12:18:11 +02:00
|
|
|
#include <WiFiClientSecure.h>
|
|
|
|
#include <BintrayClient.h>
|
2018-08-12 15:42:58 +02:00
|
|
|
|
2018-11-05 15:28:26 +01:00
|
|
|
int do_ota_update();
|
2018-08-12 23:42:39 +02:00
|
|
|
void start_ota_update();
|
2019-09-27 12:47:00 +02:00
|
|
|
void ota_display(const uint8_t row, const std::string status,
|
|
|
|
const std::string msg);
|
2019-12-25 23:21:31 +01:00
|
|
|
void show_progress(unsigned long current, unsigned long size);
|
2018-09-24 16:36:11 +02:00
|
|
|
|
|
|
|
#endif // USE_OTA
|
2018-08-12 15:42:58 +02:00
|
|
|
|
2021-03-04 21:22:49 +01:00
|
|
|
#endif // OTA_H
|