mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
21 lines
361 B
C
21 lines
361 B
C
|
|
#ifndef TASK_OTA_H_
|
||
|
|
#define TASK_OTA_H_
|
||
|
|
|
||
|
|
#include <TaskManager.h>
|
||
|
|
#include <ArduinoOTA.h>
|
||
|
|
|
||
|
|
class OTATask : public Task
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
OTATask();
|
||
|
|
virtual ~OTATask();
|
||
|
|
|
||
|
|
virtual bool setup(std::shared_ptr<Configuration> config) override;
|
||
|
|
virtual bool loop(std::shared_ptr<Configuration> config) override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
std::shared_ptr<ArduinoOTAClass> _ota;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|