ESP32-PaxCounter/include/ota.h
2021-03-03 16:20:21 +01:00

30 lines
571 B
C++

#ifndef OTA_H
#define OTA_H
#ifdef USE_OTA
#include "globals.h"
#include "led.h"
#include "display.h"
#include "configmanager.h"
#include <Update.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>
#include <BintrayClient.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include <ESPmDNS.h>
int do_ota_update();
void start_ota_update();
void start_maintenance();
void ota_display(const uint8_t row, const std::string status,
const std::string msg);
void show_progress(unsigned long current, unsigned long size);
#endif // USE_OTA
#endif // OTA_H