#ifndef LORA_H_ #define LORA_H_ #include #include #include #include #include #define LORA_RX_FREQUENCY (433775000) #define LORA_TX_FREQUENCY (433900000) #define LORA_SPREADING_FACTOR (12) #define LORA_SIGNAL_BANDWIDTH (125E3) #define LORA_CODING_RATE4 (5) class LoRa_APRS : public LoRaClass { public: explicit LoRa_APRS(std::shared_ptr boardConfig); bool checkMessage(); std::shared_ptr getMessage(); void sendMessage(const std::shared_ptr msg); void setRxFrequency(long frequency); long getRxFrequency() const; void setTxFrequency(long frequency); long getTxFrequency() const; private: std::shared_ptr _LastReceivedMsg; long _RxFrequency; long _TxFrequency; }; #endif