Files
waterlevel-software/lib/fetchOTA/fetchOTA.h
Tobias Maier 5738eb4451
Some checks failed
Test compiling project / test (push) Failing after 1m38s
A ton of things
2025-02-14 21:27:04 +01:00

27 lines
570 B
C++

#ifndef UNIT_TEST
#include <utils.h>
#ifdef UNIT_TEST
#include<ArduinoFake.h>
#else
#include <Arduino.h>
#endif
class OTA {
public:
OTA(String server_url, String currentVersion, String currentDeviceConfiguration);
Firmware getLatestVersionOnServer();
bool checkForUpdate();
private:
bool _isHTTPS = false;
String _serverUrl;
Version _currentVersion;
String _current_device_configuration;
Firmware createErrorResponse(const String& errorMsg);
};
#endif