LoRa_APRS_iGate/src/TaskNTP.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
394 B
C++

#ifndef TASK_NTP_H_
#define TASK_NTP_H_
#include <NTPClient.h>
#include <TaskManager.h>
class NTPTask : public Task {
public:
NTPTask();
virtual ~NTPTask();
virtual bool setup(std::shared_ptr<System> system) override;
virtual bool loop(std::shared_ptr<System> system) override;
private:
std::shared_ptr<NTPClient> _ntpClient;
bool _beginCalled;
};
#endif