Additional comments

pull/15/head
sh123 2021-04-07 09:08:10 +03:00
rodzic ffdb1418b9
commit 963c46ee0f
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -19,13 +19,14 @@
#define CFG_LORA_PIN_SS SS
#define CFG_LORA_PIN_RST LORA_RST
#define CFG_LORA_PIN_DIO0 LORA_IRQ
#define CFG_LORA_USE_ISR false // set to true for incoming packet ISR usage (stream mode, e.g. speech)
#define CFG_LORA_FREQ 433.775E6
#define CFG_LORA_BW 125e3
#define CFG_LORA_SF 12
#define CFG_LORA_CR 7
#define CFG_LORA_PWR 20
#define CFG_LORA_ENABLE_CRC true
#define CFG_LORA_ENABLE_CRC true // set to false for speech data
#define CFG_BT_NAME "loraprs"
@ -37,7 +38,8 @@
#define CFG_WIFI_SSID "<ssid>"
#define CFG_WIFI_KEY "<key>"
#define CFG_FREQ_CORR false
#define CFG_FREQ_CORR false // NB! incoming interrupts may stop working on frequent corrections when enabled
// test with your module before heavy usage
#define CFG_PERSISTENT_APRS true
#define CFG_DIGIREPEAT false
#define CFG_RF_TO_IS true

Wyświetl plik

@ -28,13 +28,13 @@ void initializeConfig(LoraPrs::Config &cfg) {
cfg.LoraCodingRate = CFG_LORA_CR;
cfg.LoraSync = 0x34;
cfg.LoraPower = CFG_LORA_PWR;
cfg.LoraEnableCrc = CFG_LORA_ENABLE_CRC; // set to false for speech data
cfg.LoraEnableCrc = CFG_LORA_ENABLE_CRC; // set to false for speech streaming data
// lora pinouts
cfg.LoraPinSs = CFG_LORA_PIN_SS;
cfg.LoraPinRst = CFG_LORA_PIN_RST;
cfg.LoraPinDio0 = CFG_LORA_PIN_DIO0;
cfg.LoraUseIsr = false; // set to true for incoming packet ISR usage
cfg.LoraUseIsr = CFG_LORA_USE_ISR; // set to true for incoming packet ISR usage (stream mode, e.g. speech)
// aprs configuration
cfg.AprsHost = "rotate.aprs2.net";