kopia lustrzana https://github.com/sh123/esp32_loraprs
Additional comments
rodzic
ffdb1418b9
commit
963c46ee0f
6
config.h
6
config.h
|
@ -19,13 +19,14 @@
|
||||||
#define CFG_LORA_PIN_SS SS
|
#define CFG_LORA_PIN_SS SS
|
||||||
#define CFG_LORA_PIN_RST LORA_RST
|
#define CFG_LORA_PIN_RST LORA_RST
|
||||||
#define CFG_LORA_PIN_DIO0 LORA_IRQ
|
#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_FREQ 433.775E6
|
||||||
#define CFG_LORA_BW 125e3
|
#define CFG_LORA_BW 125e3
|
||||||
#define CFG_LORA_SF 12
|
#define CFG_LORA_SF 12
|
||||||
#define CFG_LORA_CR 7
|
#define CFG_LORA_CR 7
|
||||||
#define CFG_LORA_PWR 20
|
#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"
|
#define CFG_BT_NAME "loraprs"
|
||||||
|
|
||||||
|
@ -37,7 +38,8 @@
|
||||||
#define CFG_WIFI_SSID "<ssid>"
|
#define CFG_WIFI_SSID "<ssid>"
|
||||||
#define CFG_WIFI_KEY "<key>"
|
#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_PERSISTENT_APRS true
|
||||||
#define CFG_DIGIREPEAT false
|
#define CFG_DIGIREPEAT false
|
||||||
#define CFG_RF_TO_IS true
|
#define CFG_RF_TO_IS true
|
||||||
|
|
|
@ -28,13 +28,13 @@ void initializeConfig(LoraPrs::Config &cfg) {
|
||||||
cfg.LoraCodingRate = CFG_LORA_CR;
|
cfg.LoraCodingRate = CFG_LORA_CR;
|
||||||
cfg.LoraSync = 0x34;
|
cfg.LoraSync = 0x34;
|
||||||
cfg.LoraPower = CFG_LORA_PWR;
|
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
|
// lora pinouts
|
||||||
cfg.LoraPinSs = CFG_LORA_PIN_SS;
|
cfg.LoraPinSs = CFG_LORA_PIN_SS;
|
||||||
cfg.LoraPinRst = CFG_LORA_PIN_RST;
|
cfg.LoraPinRst = CFG_LORA_PIN_RST;
|
||||||
cfg.LoraPinDio0 = CFG_LORA_PIN_DIO0;
|
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
|
// aprs configuration
|
||||||
cfg.AprsHost = "rotate.aprs2.net";
|
cfg.AprsHost = "rotate.aprs2.net";
|
||||||
|
|
Ładowanie…
Reference in New Issue