LoRa_APRS_iGate/src/TaskOTA.h
Peter Buchegger 52d41dd9f6 big changes:
- task manager working now in round robbin and returning after every task to arduino
- adding a system class which is managing all bigger things
2021-03-21 22:29:31 +01:00

21 lines
401 B
C++

#ifndef TASK_OTA_H_
#define TASK_OTA_H_
#include <ArduinoOTA.h>
#include <TaskManager.h>
class OTATask : public Task {
public:
OTATask();
virtual ~OTATask();
virtual bool setup(std::shared_ptr<System> system) override;
virtual bool loop(std::shared_ptr<System> system) override;
private:
std::shared_ptr<ArduinoOTAClass> _ota;
bool _beginCalled;
};
#endif