mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-01-24 01:20:23 +01:00
- task manager working now in round robbin and returning after every task to arduino - adding a system class which is managing all bigger things
21 lines
401 B
C++
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
|