ESP32-PaxCounter/include/ota.h
2019-03-11 18:09:01 +01:00

28 lines
573 B
C++

#ifndef OTA_H
#define OTA_H
#ifdef USE_OTA
#include "globals.h"
#include "battery.h"
//#include "update.h"
#include <Update.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>
#include <BintrayClient.h>
#include <string>
#include <algorithm>
int do_ota_update();
void start_ota_update();
int version_compare(const String v1, const String v2);
void display(const uint8_t row, const std::string status,
const std::string msg);
#if(HAS_DISPLAY)
void show_progress(unsigned long current, unsigned long size);
#endif
#endif // USE_OTA
#endif // OTA_H