2018-08-12 15:42:58 +02:00
|
|
|
#ifndef OTA_H
|
|
|
|
#define OTA_H
|
|
|
|
|
2018-09-17 17:23:02 +02:00
|
|
|
#include "globals.h"
|
2018-09-22 17:06:31 +02: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-09-21 19:30:02 +02:00
|
|
|
#include <string>
|
2018-08-12 15:42:58 +02:00
|
|
|
|
2018-09-23 18:07:40 +02:00
|
|
|
void do_ota_update();
|
2018-08-12 23:42:39 +02:00
|
|
|
void start_ota_update();
|
2018-09-17 17:23:02 +02:00
|
|
|
int version_compare(const String v1, const String v2);
|
2018-09-23 15:07:00 +02:00
|
|
|
void show_progress(size_t current, size_t size);
|
2018-09-23 18:07:40 +02:00
|
|
|
void display(const uint8_t row, std::string status, std::string msg);
|
2018-08-12 15:42:58 +02:00
|
|
|
|
2018-09-18 17:25:44 +02:00
|
|
|
#endif // OTA_H
|