2021-01-03 22:43:35 +01:00
|
|
|
#ifndef TASK_LORA_H_
|
|
|
|
|
#define TASK_LORA_H_
|
|
|
|
|
|
|
|
|
|
#include <BoardFinder.h>
|
|
|
|
|
#include <LoRa_APRS.h>
|
2021-03-12 23:21:45 +01:00
|
|
|
#include <TaskManager.h>
|
2021-01-03 22:43:35 +01:00
|
|
|
|
2021-03-12 23:21:45 +01:00
|
|
|
class LoraTask : public Task {
|
2021-01-03 22:43:35 +01:00
|
|
|
public:
|
2021-03-12 23:21:45 +01:00
|
|
|
LoraTask();
|
|
|
|
|
virtual ~LoraTask();
|
2021-01-03 22:43:35 +01:00
|
|
|
|
2021-03-21 22:29:31 +01:00
|
|
|
virtual bool setup(std::shared_ptr<System> system) override;
|
|
|
|
|
virtual bool loop(std::shared_ptr<System> system) override;
|
2021-01-03 22:43:35 +01:00
|
|
|
|
2021-03-12 23:21:45 +01:00
|
|
|
TaskQueue<std::shared_ptr<APRSMessage>> inputQueue;
|
2021-01-05 23:57:59 +01:00
|
|
|
|
2021-01-03 22:43:35 +01:00
|
|
|
private:
|
2021-03-12 23:21:45 +01:00
|
|
|
std::shared_ptr<LoRa_APRS> _lora_aprs;
|
2021-01-03 22:43:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|