15 lines
361 B
C++
15 lines
361 B
C++
#include <ArduinoOTA.h>
|
|
#include <Figments.h>
|
|
|
|
class ArduinoOTAUpdater : public BufferedInputSource {
|
|
public:
|
|
ArduinoOTAUpdater();
|
|
void loop() override;
|
|
void handleEvent(const InputEvent& evt) override;
|
|
|
|
private:
|
|
bool m_online = false;
|
|
static void s_onStart();
|
|
static void s_onProgress(unsigned int progress, unsigned int total);
|
|
};
|