21 lines
438 B
C++
21 lines
438 B
C++
#ifndef LORA_CONFIG_H
|
|
#define LORA_CONFIG_H
|
|
|
|
struct LoraConfig {
|
|
float frequency;
|
|
int spreadingFactor;
|
|
float signalBandwidth;
|
|
int codingRate4;
|
|
int power;
|
|
};
|
|
|
|
namespace LoraDefaults {
|
|
constexpr float frequency = 433.775f;
|
|
constexpr int spreadingFactor = 12;
|
|
constexpr float signalBandwidth = 125.0f;
|
|
constexpr int codingRate4 = 5;
|
|
constexpr int power = 20;
|
|
}
|
|
|
|
#endif /* LORA_CONFIG_H */
|