mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
26 lines
577 B
C++
26 lines
577 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:
|
|
AprsIsTask(TaskQueue<std::shared_ptr<APRSMessage>> * const toAprsIs);
|
|
virtual ~AprsIsTask();
|
|
|
|
virtual bool setup(std::shared_ptr<System> system) override;
|
|
virtual bool loop(std::shared_ptr<System> system) override;
|
|
|
|
private:
|
|
std::shared_ptr<APRS_IS> _aprs_is;
|
|
|
|
TaskQueue<std::shared_ptr<APRSMessage>> * const _toAprsIs;
|
|
|
|
bool connect(std::shared_ptr<System> system);
|
|
};
|
|
|
|
#endif
|