LoRa_APRS_iGate/src/TaskAprsIs.h

26 wiersze
509 B
C
Czysty Zwykły widok Historia

#ifndef TASK_APRS_IS_H_
#define TASK_APRS_IS_H_
#include <APRS-IS.h>
#include <APRSMessage.h>
#include <TaskManager.h>
2021-03-12 19:01:47 +00:00
#include <Timer.h>
class AprsIsTask : public Task {
public:
2021-05-18 22:27:27 +00:00
explicit AprsIsTask(TaskQueue<std::shared_ptr<APRSMessage>> &toAprsIs);
virtual ~AprsIsTask();
2021-05-18 22:44:37 +00:00
virtual bool setup(System &system) override;
virtual bool loop(System &system) override;
private:
2021-05-21 20:41:30 +00:00
APRS_IS _aprs_is;
2021-05-15 20:58:15 +00:00
2021-05-16 06:40:44 +00:00
TaskQueue<std::shared_ptr<APRSMessage>> &_toAprsIs;
2021-05-21 21:28:50 +00:00
bool connect(const System &system);
};
#endif