mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-01-09 18:20:04 +01:00
26 lines
509 B
C++
26 lines
509 B
C++
#ifndef TASK_APRS_IS_H_
|
|
#define TASK_APRS_IS_H_
|
|
|
|
#include <APRS-IS.h>
|
|
#include <APRSMessage.h>
|
|
#include <TaskManager.h>
|
|
#include <Timer.h>
|
|
|
|
class AprsIsTask : public Task {
|
|
public:
|
|
explicit AprsIsTask(TaskQueue<std::shared_ptr<APRSMessage>> &toAprsIs);
|
|
virtual ~AprsIsTask();
|
|
|
|
virtual bool setup(System &system) override;
|
|
virtual bool loop(System &system) override;
|
|
|
|
private:
|
|
APRS_IS _aprs_is;
|
|
|
|
TaskQueue<std::shared_ptr<APRSMessage>> &_toAprsIs;
|
|
|
|
bool connect(const System &system);
|
|
};
|
|
|
|
#endif
|